Hi,
I am writing a C# mobile 6 (dot.net 3.5) application.
On the form, I have a label. I update this label with text as my initalizing routines are running (from the form load event), such as initializing the database, setting variables, setting up the GPS, etc.
That is why I want the form to display first,so that when my routines (in the form load event) run, I want the label to update with text such as "Initializi ng the database".
I can update the label, but the form is never shown until everything has run and all that occurs is the wait cursor showing.
I have tried everything, like this.show and an application doevents in the form load event, but it wont physically show the form until all the routines in the form load routine have completed.
I have tried form activate as well, but that exhibited the same behaviour as the form load.
Is there anyway to halt processing until the form is displayed, or is there another command other than this.show.
Is there a different way to actually know the form is displayed before proceding?
Any ideas?
Thanks,
Robert
I am writing a C# mobile 6 (dot.net 3.5) application.
On the form, I have a label. I update this label with text as my initalizing routines are running (from the form load event), such as initializing the database, setting variables, setting up the GPS, etc.
That is why I want the form to display first,so that when my routines (in the form load event) run, I want the label to update with text such as "Initializi ng the database".
I can update the label, but the form is never shown until everything has run and all that occurs is the wait cursor showing.
I have tried everything, like this.show and an application doevents in the form load event, but it wont physically show the form until all the routines in the form load routine have completed.
I have tried form activate as well, but that exhibited the same behaviour as the form load.
Is there anyway to halt processing until the form is displayed, or is there another command other than this.show.
Is there a different way to actually know the form is displayed before proceding?
Any ideas?
Thanks,
Robert
Comment