Posts by julius_cesars • 59 points
6 posts
-
0
votes1
answer109
viewsA: Listview
To return an Image see if the code below helps you: public Image byteArrayToImage(byte[] byteArrayIn) { MemoryStream ms = new MemoryStream(byteArrayIn); Image returnImage = Image.FromStream(ms);…
-
1
votes4
answers1247
viewsA: Function within another
Ideal would be for you to create a support class containing the methods you need. So your code is more organized and easy to maintain. Below is a very simple example. namespace Exemple { public…
-
4
votes2
answers170
viewsQ: How can I create events in a safer way?
I am creating events according to the code below, however it seems to be a somewhat dangerous way, since if there is a cancellation of the event it will accumulate every "shot" of the event, that…
-
0
votes2
answers76
viewsA: Save data to a text file to read later
I suggest you search for XML files, in it you can organize the data from "tags" and then read them. Take a look at the System.Xml class
-
0
votes2
answers69
viewsA: Recursive problem when integrating files
"Out of range" your "for" is trying to access a position of the vector that does not exist. Remember that Count returns the quantity and not the position. Example var t = Lista.Count // vai me…
-
0
votes1
answer489
viewsQ: Synchronize Progressbar with Execution of class methods
In my project I have a class that has three methods: static List<string> ListaArquivos(string path){...} static void CriaArquivoUnico(List<string> listaArquivos){...} static void…