marzo 2008 Blog Posts

Cross thread call in a winform

In a winform you have to make all modification from the thread where the winform is created. If you manage async operations you'll step into the problem of modifying the form from another thread. You can use delegate to do this. Say you want to change the textbox text. First declare the delegate that accepts a string as a parameter: public delegate void SetLogTextDelegate(String myString); Then declare a variable with the previous delegate as hits...

«marzo»
domlunmarmergiovensab
2425262728291
2345678
9101112131415
16171819202122
23242526272829
303112345