Open form, but don't take control away from other forms

  • Thread starter Thread starter Chris, Master of All Things Insignificant
  • Start date Start date
C

Chris, Master of All Things Insignificant

I have a popup notification, much like MSN or AIM does. The form pops up
ok, but it is taking control away from the current application. It is nice
enough to give it back once it closes, but how can I stop it from taking
over focus? I know one of you .net geniouses know how to do this....

Thank you my friends.
Chris
 
Hi Chris,
I'd try something like:

Dim foo As New Windows.Forms.Form
foo.Show()
Me.Focus()

I have not tested this but it should work. Basically it shows the new form
the gives focus back to the current form.
If Me.Focus doesn't work, try Me.Select.

Best Regards,

Phil Harvey
 

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

Back
Top