Window application flash like orange on taskbar when minimize

后端 未结 4 841
傲寒
傲寒 2020-12-02 12:37

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

4条回答
  •  春和景丽
    2020-12-02 12:53

    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!

提交回复
热议问题