i'm stuck and can't find solution. I'm a novice in C#...
I have two files in my project...this is just a simplified example, my real app is more complicated :)
1. Main FORM that has a textbox and a Button on it.
2. and annother file "CLASS" that has defined a function that generates random values (for example).
now... On a click of a button I create a thread that calls function form that class file like this.
Class1 delaj = new Class1();
Thread t = new Thread(new ThreadStart(delaj.GenerateNumbers));
...here is my problem. How can I pass generated value back to main form, each time that is generated, so that I can append generated value in my textbox? I know how to create event handler so that I can trigger an event each time that number is generated. I can't figure it out how to get that geneated value.