VB.NET Restoring a minimized form which has not got focus

vb.net , express 2008 , forms , windowsstate , restore form , timer control Reading, United Kingdom
  • 11 years ago

    Hi, I would really like a bit of a nudge in the right direction.

    I have created an app which has a timer control which, when activated and meets a certain criteria, launches a second form with an alert for the user to review and action. this works just fine.

    Except.... when the main app is minimised and has lost focus, instead of launching the second form to a normal windows state it opens and sits in a minimized state itself and just flashes. How can I get the the second form to restore to a normal windows state?

    I have tried form2.focus and tried the windowsstate=normal etc but I'm still barking up the wrong tree. Dont necessarily need someone to send me the code just a couple of pointers would do.

    thanks for any help.

    Farmsie.

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Anyone who considers arithmetic methods of producing random digits is, of course, in a state of sin.” - John von Neumann