Disapearing forms

  • Thread starter Thread starter Thomas FERREIRA
  • Start date Start date
T

Thomas FERREIRA

Hi,

I've just a little issue with Forms management in the compact framework.

My application have a mainscreen with buttons. When the user press a
button a new form is shown:

if(m_toolsScreen == null)
m_toolsScreen = new ToolsForm();
m_toolsScreen.Show();

Now my problem: Sometimes (randomly) when the user minimize the
ToolsForm (with the X button) the mainscreen disapear. It is still
running but hidden and when i restart the application, only the
ToolsForm is showned. What's the matter ?

Thanks,

Thomas FERREIRA
 
Hi,
Try out these 2 things:
1) Set MainForm.Visible = False immidiately after showing your tools
form. I hope your ToolsForm must be having a navigation to return back
to MainForm, where you can set MainForm.Visible - True again
2) Another solution can be you can show ToolsScreen as a dialog form
using ShowDialog() method instead of Show()
Regards,
Bipin
(Developer)
Palewar Techno Solutions
Pocket PC & Mobile Software Development
Nagpur, India

http://www.palewar.com
 
Thanks, i'm going to try these solutions

(e-mail address removed) a écrit :
 
Back
Top