Solved

VB .Net opens minimized

Posted on 2010-11-19
22
391 Views
Last Modified: 2012-05-10
I have a vb .net application deployed to around 20 users.  Out of all of them, there is one user that complains that the application opens up minimized.  However she also reports that it works correctly if it's not the first application to open on the desktop.  Very bizzare.  Any thoughts or suggestions to resolve this issue?
0
Comment
Question by:MrFantastic6
  • 11
  • 4
  • 3
  • +2
22 Comments
 
LVL 33

Expert Comment

by:paulmacd
ID: 34173723
Check the shortcut the user uses to launch the application.  See if it specifies the application launch minimized.
0
 
LVL 2

Author Comment

by:MrFantastic6
ID: 34173742
I did. The run property is set to "Normal window".  There are no switches in the "start in" property either.  And again, this is only happening to one user.  This has to be an environment issue.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 34173786
It would be environment issue if its for only one user. See if this helps

http://www.winvistatips.com/window-opens-background-minimized-taskbar-t335167.html
0
 
LVL 2

Author Comment

by:MrFantastic6
ID: 34173826
it is only happening to one user.
0
 
LVL 33

Expert Comment

by:paulmacd
ID: 34173839
Have you verified the symptoms the user reports?
0
 
LVL 7

Expert Comment

by:EYoung
ID: 34173896
Has the user restarted their computer?

Are they running the same version of the OS that the other users are running including service packs?

Also, are they running any unusual programs in the startup or any unusual resident programs?

And how do they close the application?  Do they close it after it is minimized into the task bar?
0
 
LVL 2

Author Comment

by:MrFantastic6
ID: 34173990
She running xp pro, SP3. I looked at her startup items and one weird thing i saw was an ICO.EXE in her startup, but that was about it.  What I noticed was when she starts it. it goes minimized in her taskbar and it blinks too.
0
 
LVL 2

Author Comment

by:MrFantastic6
ID: 34174015
I must mention i have a splashscreen that was recently added to my application.  
0
 
LVL 2

Author Comment

by:MrFantastic6
ID: 34174152
i've recompiled a new update just now.  I'll let you know the test results.  in the splash screen closing code I have frmMain.windowstate = Minimized, and in the frmMain Load event at the very last line I have me.windowstate = Normal.  Seems to work ok for me on the dev machine.  I started with frmMain.windowstate = Normal in the closing of the splashscreen code, but then it only flashed my splashscreen for a nanosecond before the frmMain overlayed it.
0
 
LVL 7

Expert Comment

by:EYoung
ID: 34174256
You might try uninstalling the app on her computer, then restarting her computer, then reinstall the app.

Have you checked for viruses on her computer?

Are her accessibility options set correctly - like everyone elses?

Do you notice anything different about her computer, i.e. keyboard, mouse, physical computer, speed of mouse, etc?
0
 
LVL 2

Author Comment

by:MrFantastic6
ID: 34174311
I just had a second user confirm the same behaviour, so now I'm less inclined to target this as an envinronment issue.  I'm still waiting to hear back the results of my last update.  Great tips everyone thanks.
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 2

Author Comment

by:MrFantastic6
ID: 34174369
The results are in from the test.  I didn't not fix the problem.
0
 
LVL 7

Accepted Solution

by:
EYoung earned 167 total points
ID: 34174383
Yep.  That makes more sense.  Did the minimizing occur prior to adding the splash screen?  I'll bet not.  Just remove the splash screen and use the opacity property for visual effects.
0
 
LVL 7

Expert Comment

by:EYoung
ID: 34174414
"in the splash screen closing code I have frmMain.windowstate = Minimized, and in the frmMain Load event at the very last line I have me.windowstate = Normal"

Are you minimizing the frmMain or the frmSplash screen?  Looks like you are minimizing the frmMain not the Splash screen.
0
 
LVL 2

Author Comment

by:MrFantastic6
ID: 34174493
I am now minimizing the main form because if i use normal there it only splashes my splashscreen for a split nanosecond before the frmMain overlays it.  So I set the frmMain to minimized and then place the Me.WindowState = Normal on the last line of the frmMain_Load event.  This allows the splash screen to appear solo for 3 to 4 seconds while the main form load event does it initializing routines.

I'm not against removing the splash screen but I do have some functionality w/ a progress bar in the splash screen occuring there.  I'd rather not re-engineer that if at all possible.
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 167 total points
ID: 34174519
May be the execution is not reaching the last line. Add a Try catch across the Load event

Public Sub Load(...)
Try
...
Catch
...
Finally
Me.WindowState = Normal
End Try
End Sub
0
 
LVL 2

Author Comment

by:MrFantastic6
ID: 34174698
Thanks CodeCruiser.  I took your idea and in addition, I moved a threaded process I was launching before the me.windowState = Normal line to run after that line now as well.  I'm trying to remove anything that might hinder the state operation useless or irrelevant.  The thread process is form or display independent but I didn't want to take any chances.
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 34174734
"it only splashes my splashscreen for a split nanosecond before the frmMain overlays it"

What version VB.net are you working in and HOW are you displaying the "splash" screen?...
0
 
LVL 2

Author Comment

by:MrFantastic6
ID: 34174893
2008.  The splash screen displays by default by setting the application splashscreen setting
0
 
LVL 85

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 166 total points
ID: 34175213
Ok...good.

But you have:

    "This allows the splash screen to appear solo for 3 to 4 seconds while the main form load event does it initializing routines."

The splash screen WILL stay open as long as your startup form is still initializing.  If the startup form is appearing then it is "done" loading.

To increase the minimum display time for you splash screen, override Application.OnInitialize() and set the MinimumSplashScreenDisplayTime():
http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.applicationservices.windowsformsapplicationbase.minimumsplashscreendisplaytime.aspx
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 34175234
"I do have some functionality w/ a progress bar in the splash screen occuring there"

It might be possible that something you're doing there is causing the startup form to think it is done loading.  You aren't calling Application.DoEvents() are you?

You might be interested in:
http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/A_3671-Updating-a-Splash-Screen-with-Loading-Progress-in-a-VB-Net-WinForms-Application.html
0
 
LVL 2

Author Closing Comment

by:MrFantastic6
ID: 34176603
Thanks Guys!  
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now