如何得到一个控件自己?

DBSong 2000-10-21 08:58:00
e.g.
When a bottun is be clicked,How can i get it's property,and know it is a button?
...全文
51 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
Edward 2000-10-22
  • 打赏
  • 举报
回复
Hehe, it's a silly question anyway.

When you are in Design mode, you write even handlers for your controls.
For example, you have a CommandButton Command1, and you can add the following event handler:

Private Sub Command1_Click()
' Now in this event handler
' you KNOW you are writing code that is expected to
' be executed after the user clicks Command1
End Sub

Are you a VB newbie?

1,451

社区成员

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

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