i have an window application. when i minimize the window application on taskbar to work on another application. we hava a facility like send message from one window applicat
Guys I found a much easier way to do it! If this is the case you're using it for.
In .NET 4.0, C#, if you just use
this.WindowState = FormWindowState.Normal;
this.Activate();
The first line makes sure it's not minimized, the second line makes it the focus. I'm not sure exactly why (either one of them don't do this), but combined, if you show a MessageBox from this form, your program flashes orange in the taskbar!