开发者

application causing orange flashing in taskbar

开发者 https://www.devze.com 2023-03-08 14:48 出处:网络
Sometimes when our application launches it flashes orange in the taskbar.I don\'t think we explicitly wrote any code to do this but it still h开发者_Python百科appens.Our program is a c# winforms app t

Sometimes when our application launches it flashes orange in the taskbar. I don't think we explicitly wrote any code to do this but it still h开发者_Python百科appens. Our program is a c# winforms app that sometimes takes a while to load. Any ideas what could be causing this and how I can prevent it?


I believe you can use MSDN's flashwinfo .

Edit - Here's some more info .


From my experience, if the application isn't the current application the user is using, but does something 'on its own' to update the UI(?) the system recognizes this and notifies the user by the orange flash thing.

So if your application is doing some long processing and the user clicks away to another application/window, they probably will get the orange flash.


A possible alternative would be to prevent the application from showing in the Taskbar until loading has completed.

So, something along the lines of:

// prevent from showing in the constructor (or via the designer)
public MyAppMainForm()
{
    this.ShowInTaskbar = false;

    // other initialization
}

// now you're ready to show in the Taskbar
private void MyAppMainForm_Load(object sender, EventArgs e)
{
    this.ShowInTaskbar = true;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消