Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Side Effect Restore Windows From Minimized State...
Message
From
11/06/2008 00:40:59
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01322836
Message ID:
01323007
Views:
21
Is there any way you can test to see if a modal form is open before you minimize?

~~Bonnie


>I wrote a "idle" timer that minimizes my application after a certain time has passed. When the user attempts to "restore" the window, I trap the WM_WINDOWPOSCHANGING message in the WndProc event, then I display a login form. If they login again properly, I manually restore the form by changing the WindowState to Normal.
>
>Here is my problem, if there was a MODAL form open at the time of minimize, when I restore the main application form, the MODAL form does not restore. It stay hidden, but still loaded in memory. I tried to make VISIBLE = TRUE, but the problem is that the form is no longer MODAL.
>
>Any suggestions?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform