Screenupdate = True / False有哪些C#代码? [英] Is there some kind of C# code for Screenupdate =True/False?

查看:146
本文介绍了Screenupdate = True / False有哪些C#代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新手,我已经在这个论坛上来回切换了两个表格的C#代码,现在的问题是:当表单之间切换时,它基本上关闭一个表单并打开另一个表单,这样用户就可以看到一个表单按钮从任务栏消失,然后另一个
表单按钮显示在任务栏上。

Newbie, I have found C# code for switch two forms back and forth on this forum, now the problem is: when switch between forms, it basically closes one form and opens another form, so user can see that one form button disappears from taskbar, then another form button shows up on taskbar.

我想在一个表单按钮消失之前禁用screenupdate,然后在另一个表单按钮后再次启用screenupdate显示在任务栏上。

I want to disable screenupdate before one form button disappear, then enable screenupdate again after the other form button shows up on taskbar.

但是 ,我想这不是最好的解决方案,对于具有多种形式的应用程序(来回切换),如何
让用户看到任务栏按钮消失/出现,任务栏上只显示一个表单按钮。

However, I guess this is not the best solution, for an application with multiple forms (switching back and forth), how to not let users keep seeing taskbar button disappear/appear, only one form button shows on taskbar all the time.

谢谢。

推荐答案

您是在谈论每个表单是"已显示"时任务栏中显示的图标,如果是这样的话h form有一个属性,允许显示或隐藏图标,如果你想要你可以给每个表单自己的图标,以便它们可以在任务栏上区分

Are you talking about the icon that appears in the task bar when each form is "Shown", if so each form has a property which allows the icon to be shown or hidden, also if you wanted to you could give each form its own icon so that they could be distinguished on the task bar.

private void button1_Click(object sender, EventArgs e)
        {
            this.ShowInTaskbar = false;
        }


这篇关于Screenupdate = True / False有哪些C#代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆