WinForms-显示表单时没有焦点 [英] WinForms - Show Form without Focus

查看:84
本文介绍了WinForms-显示表单时没有焦点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想显示一个没有焦点的表单-加号-我想在我的项目"中启用启用应用程序框架"申请表.启用启用应用程序框架"可以捕获整个项目范围内未处理的异常.

I would like to show a Form without focus - PLUS - I would like to have 'Enable Application Framework' enabled on the My Project > Application form.  Having 'Enable Application Framework' enabled allows trapping of unhandled exceptions project-wide.

我已将其添加到我的代码中:

I have added this to my code:

 Protected Overrides ReadOnly Property ShowWithoutActivation() As Boolean
        Get
            Return True
        End Get
End Property

感谢任何想法,

汤姆

MisterT99

MisterT99

推荐答案

您确定必须具有启用应用程序"框架"是否可以捕获异常?显示表单时,您应该能够捕获任何未处理的异常.来自Sub Main.
Are you sure you must have "Enable Application Framework" enabled to trap exceptions?  You should be able to catch any unhandled exceptions when showing a form  from Sub Main.


这篇关于WinForms-显示表单时没有焦点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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