troubleshooting Question

Me.Visible AND Me.WIndowState = WindowState.Normal doesn't work

Avatar of RobertFromSecretWeapons
RobertFromSecretWeapons asked on
.NET ProgrammingVisual Basic.NET
13 Comments2 Solutions2234 ViewsLast Modified:
Hi, damn this is irritating - please provide relief..LOL.

1 - I want my form to start up in the invisible state.  So, in the form_load event, I have Me.Visible = False (this does'nt work in the form_load event) (Please don't suggest Opacity as a solution as this doesn't disable the controls on the form face)  I am using a timer and making it invisible there, but there is a small slice of time where the initial load of the form will show the screen.

2 - My form is normally invisible, so when a certain event fires on the form, I need to make the form visible, so I make it visible, Me.Visible = True, this works, but if the form was previously minimized by the user, I cannot restore it to the normal state.  The following simply doesn't work - > Me.WIndowState = FormWindowState.Normal doesn't work  
How do I force a restore of the form regardless of previous state.

Some sanity greatly appreciated...

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 13 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 13 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros