sometimes app opens up Minimized - have to restore/Maximize manual

R

Rich

using WinXp (SP3), VB2005. sometimes when a user opens the app - the app
opens in minimized WindowState and clicking on the app's icon in the windows
taskbar wont open the app to Normal WindowState. The short term fix I have
the users doing when this happens is to right-click the app's icon and select
Maximize. This will open the primary form Maximized. Then they close the
app and reopen it normally.

The windowState of the primary form (the startup form) is set to Normal
(actually, all the forms in the app are set to Normal open). If the app
opens in a minimized state - is there a way I can force the app to open in
Normal state?

I am thinking in the Form load event I could have something like

If me.WindowState = ...Minimized Then
Me.WindowState = ...Normal
End If

Any suggestions appreciated.

Thanks,
Rich
 
M

Miro

You should be able to in the form.load just put the me.windowstate =
....normal ( without the if statement ).

You might be able to put the code in the "New" event as well. That might
solve your problem without having it in your Load Event.

I would suspect that would do the trick and solve your problem ( the form
load ). - not sure about the 'New' event.

Miro
 
R

Rich

Thanks. Yes - I should ignore windowstate = min... and just say

me.windowstate = ...Normal.

Good Suggestion.
 

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

Top