开发者

winforms closing issue, vb.net

开发者 https://www.devze.com 2022-12-19 13:09 出处:网络
i have a vb.net 2.0 winforms appli开发者_如何学JAVAcation. When i open another application (like calculator ) have the focus to it and try to close my application the screen freeze and i have to use c

i have a vb.net 2.0 winforms appli开发者_如何学JAVAcation. When i open another application (like calculator ) have the focus to it and try to close my application the screen freeze and i have to use ctrl + alt + del to get it to refresh.

Any idea what can affect that?


If I understand your dilemma, somewhere you're sending SENDKEYS, and if you do not have focus and you SENDKEYs the app freezes.

Why not simply add a

if Me.Focus then SendKeys

0

精彩评论

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

关注公众号