VB中Exit try及CheckBox的lost-focus事件简介

VB中Exit try及CheckBox的lost-focus事件简介,第1张

概述Exit Try 立即退出所在的 Try 或 Catch 块。 如果存在 Finally 块,则将继续执行该块;否则,将继续执行 End Try 语句之后的语句。 只能在 Try 或 Catch 块内使用 Exit Try,不能在 Finally 块内使用它。 --------- Q:  Iwould like to disable a checkbox from focusing, so tha

Exit Try

立即退出所在的 Try 或 Catch 块。 如果存在 Finally 块,则将继续执行该块;否则,将继续执行 End Try 语句之后的语句。 只能在 Try 或 Catch 块内使用 Exit Try,不能在 Finally 块内使用它。

---------

Q: Iwould like to disable a checkBox from focusing,so that even user tabbed to orclicked on that checkBox,the checkBox still would not accept the focus,andthe focus remains where it prevIoUsly is.

Possible? Thanks...

A1: Ifyou want to skip the control while tabbing,use control's TabStop property andset it to false. Still,if clicked with mouse,it will still get focus. If youwant to disable the checkBox,set it's Enabled property to false. And in caseyou don't want to disable the checkBox but still don't want it to take focus,use it's GotFocus event to set Focus to any else control.

A2: ActuallyI would like to prevent prevIoUsly focused control to issue lost-focus event.

But,that seems impossible. So,I wouldlike to try different approach to solve the problem.

Anyway,thank you all.

总结

以上是内存溢出为你收集整理的VB中Exit try及CheckBox的lost-focus事件简介全部内容,希望文章能够帮你解决VB中Exit try及CheckBox的lost-focus事件简介所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1271421.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-08
下一篇 2022-06-08

发表评论

登录后才能评论

评论列表(0条)

保存