Running Application.Run twice

  • Thread starter Thread starter Jon Skeet [C# MVP]
  • Start date Start date
J

Jon Skeet [C# MVP]

At the start of my app, I run a form if certain pre-conditions aren't
met, for configuration purposes.

After that, when I call Application.Run with another form, the form is
created, and is running fine and can be switched to via Settings /
System / Memory / Running Programs, but it isn't brought to the front
like forms usually are - and I can't programatically bring it to the
front, either. I've tried Hide/Show, Visible=false/true,
SendToBack/BringToFront, Focus etc - no luck. Any suggestions?
 
I previously posted and reposted about a problem I had. Post was

"Repost: Switching between forms leaves forms minimized"

This concerned a problem I had with forms that were maximized under
RTM but minimized under SP2 even though I had the

this.WindowState = FormWindowState.Maximized;

set.

This solution seems to fix that problem which is great. The problem is
I have is that the form is first minimized and then this code forces
the maximize which causes the screen to flicker which doesn't look
good.

Any ideas of how to fix that?

Many thanks
 
Back
Top