Windows.Forms Issue (compact framework)

  • Thread starter Thread starter Brett Miller
  • Start date Start date
B

Brett Miller

I have a form (form1) that I call another form (form2) from, using
..ShowDialog (modul). I disable form1 (.Enabled = False), once the user is
finished with form2 (checked a few check boxes, and clicked a button) the
Disposing event of Form2 is fired (on form1) and I re-enable(.Enabled =
True) Form1.

This all work fine. However! Form1 is minimized in the Taskbar, and will
only show if I click on it.

Anybody anay ideas?

Tried These.....

..ShowDialog()
..Show()
..Focus
..BringToFront
..SetWindowState
 
Hi Brett,

If you are using the ShowDialog() method to show Form2 then there is no
need to set the Enabled property of Form1 to false. The .NET Compact
Framework will disable the first form for you. I believe that setting the
Enabled property causes the problem.

Hope this helps.
Thank you,
Sergiy.

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| Reply-To: "Brett Miller" <[email protected]>
| From: "Brett Miller" <[email protected]>
| Subject: Windows.Forms Issue (compact framework)
| Date: Thu, 8 Jul 2004 08:57:09 +0200
| Lines: 24
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <[email protected]>
| Newsgroups:
microsoft.public.dotnet.framework.compactframework,microsoft.public.dotnet.f
ramework.windowsforms
| NNTP-Posting-Host: 196.25.102.132
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.windowsforms:70293
microsoft.public.dotnet.framework.compactframework:56881
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| I have a form (form1) that I call another form (form2) from, using
| .ShowDialog (modul). I disable form1 (.Enabled = False), once the user is
| finished with form2 (checked a few check boxes, and clicked a button) the
| Disposing event of Form2 is fired (on form1) and I re-enable(.Enabled =
| True) Form1.
|
| This all work fine. However! Form1 is minimized in the Taskbar, and will
| only show if I click on it.
|
| Anybody anay ideas?
|
| Tried These.....
|
| .ShowDialog()
| .Show()
| .Focus
| .BringToFront
| .SetWindowState
|
| --
| Regards
| Brett Miller
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Forms not completely disposing... 7
form flow 1
ShowDialog issues 1
ShowInTaskBar property 2
Can't bring form to front 6
Activate the wrong form 2
Question on MDIchild forms 6
New Forms do not show on PocketPC 4

Back
Top