按钮事件,想在gotfocus事件中判断一个值,如何该值满足条件,取消down、up等事件的产生,如何实现?

EZUsb 2002-07-05 11:51:03
如题!
...全文
104 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
EZUsb 2002-07-05
  • 打赏
  • 举报
回复
Ranma_True(乱马1/2(真)) ,你说错了!
Ranma_True 2002-07-05
  • 打赏
  • 举报
回复
可down发生在gotfocus之前
EZUsb 2002-07-05
  • 打赏
  • 举报
回复
Chice_wxg(我怕谁?我是谁!我是流氓我最贼。) 说的没有道理,你自己去试试。
Chice_wxg 2002-07-05
  • 打赏
  • 举报
回复
public sub Command_Getfocus
if .... then 给另一个可见控件焦点( command2.setfocus)
end sub

这样就可以了
水哥工坊 2002-07-05
  • 打赏
  • 举报
回复
option explict
BlnFlag as boolean
public sub Command_Getfocus
if .... then BlnFlag =true
end sub

public sub Command_MouseDown
if BlnFlag =true then exit sub
...
end sub

7,786

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧