开发者

How to avoid the flickering on taskbar in .net winforms?

i am using normal Form2.Show() and From1.Hide() to navigate the Form1 to Form2. Application but开发者_如何学Pythonton is disappearing and appearing on the task bar while navigating just like flickering.

How to avoid this flickering?


Your approach is wrong. You should have one main form which will be showing in taskbar. And all child forms should be set ShowInTaskBar = false. When ever, button on taskbar is clicked, application should activate / minimize the current visible child. This way you wont see button changing in taskbar. But personally I dont see any issue with current flickering, it is by default and there is nothing wrong with it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜