Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有问题。我的应用程序在获得焦点之前不会显示在 Windows 7 任务栏中。我尝试了很多东西,包括:
this.TopMost = true; this.ShowInTaskBar = true;
在表单生命周期的不同阶段,但没有任何反应。FormBorderStyle 属性设置为 FixedSingle。该表单只有几个按钮和一个网络浏览器(从资源中获取一个 html 页面)。
我在 Windows 7 64 位上运行。
谢谢。
我写的一个项目也有同样的问题。除非我强制 Windows 刷新它,否则任务栏中不会显示任何图标。
这是一个呼吁
this.MinimumSize = new Size(wid, len);
在 Form_Load 这就是问题所在。