I wrote a simple winforms application which does some task every 30 seconds (using a timer). There is a function which is called each time its “time event” is raised.
In this function I am also trying to change some text that appears in some label. I try to do it by calling BeginInvoke – but this does not change the text.
Then I also try to call it by simple .Text = "some Text" – but this also did not work.
How can I change the control’s properties?
You need BeginInvoke only if you are working with threads. Otherwise following should work: