Hello,
I have an application with a notifyIcon. When my application's main form is
hidden by some other window I would like to bring it in front by
single-clicking the NotifyIcon. However, I can't get it done. In the Click
event I've used all sorts of methods:
this.SetTopLevel(true);
this.Show();
this.Focus();
this.BringToFront();
When I try it with my application's form focused, I see that it just loses
its focus! I guess that's because the click on the NotifyIcon shifts focus
to that NotifyIcon. But how can I bring my app's form to front, give it
focus again?
Thanks!
Tom Porterfield - 20 Nov 2006 20:14 GMT
> I have an application with a notifyIcon. When my application's main form
> is hidden by some other window I would like to bring it in front by
[quoted text clipped - 10 lines]
> to that NotifyIcon. But how can I bring my app's form to front, give it
> focus again?
this.Activate() is what you are looking for.

Signature
Tom Porterfield