General information
Category:
Mobile development
Hi Bonnie
I was hoping there would be an easier way. This is my first C# project and my first time I have developed for the Pocket PC. I think I will just set the forms to close instead of minimize except the main one with the menu on.
Thanks
John
>John,
>
>You could use a FormsHandler. I use a static ArrayList to which I add every form that I open. If you did the same thing, you could check if the form is already in the ArrayList, add it if it's not, and then Show it.
>
>~~Bonnie
>
>
>>I use the following code to open a form which is called from a menu.
>>
>>frmAnimalsReport AnimalsReport = new frmAnimalsReport() ;
>>AnimalsReport.Show() ;
>>
>>
>>This works ok, but because the form is minimised every time the form is run it creates a new instance. How can I check if the form has been loaded and if it has, just show it?
>>
>>This is a Pocket PC application written in C#
>>
>>Thanks
>>
>>John
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only