I created a status strip on my main form and a label within it. And I am opening another form within this (MdiContainer is true). For opening I am passing the object of main form in the constructor i.e. this. There I am updating the text of the label but its not getting updated.
I tried invalidate function also.
I created a status strip on my main form and a label within it.
Share
I was having this problem too. The fix is to add a line of code that fires events (see the second line below)
I don’t completely understand why this works, but my guess is that VB does not handle Application-wide events in the middle of a method unless you tell it to. When you change the text property, this is an event. So VB will (Im guessing) wait until the end of the method before handling the event–unless you tell it specifically to handle all events with Application.DoEvents()