关于按钮的一个小问题,请教大虾们 定义一个数组,在CLICK里添加command(inex+1).setfocus偶对VB也不是很熟,又再网吧,没办法做实验,楼主,自己试试吧 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 基本上这种事情最方便的形式就是用按数组,按钮数组只要有一个事件就可以子,所有的事情都在这一个事件中集中处理如按钮的名字叫 cmdFunPrivate Sub cmdFun(Index as Integer) SendKeys "{TAB}" ''各个按钮功能的实现 Select Case Index Case 0 Case 1 End SelectEnd Sub 确实应把按钮设成数组Private Sub Command1_click(Index as Integer)Command1(index).SetFocusend sub 笔误:Command1(index+1).SetFocus Private Sub Command1_click(Index as Integer)if index=100 then index=-1end if Command1(index+1).SetFocusend sub Private Sub Command1_click(Index as Integer)if index < command1.ubound thenCommand1(index+1).SetFocusend ifend sub to:FUNDGIRL(阿弥陀佛) 不懂才问人,何必骂人。我日你奶奶!!1 谁有TrueDBGrid8?发一个给我啊! 紧急求助!在VB中如何使用命令创建一个ACCESS数据库?在线等待...... 求图像高手,bmp到jpeg格式的转换 mscomm控件问题 +++++++ 无法进行可用分捐赠,只能采取散分了不得 ++++++++++++ 向表中插入记录的问题? (50分) 在vb中怎么判断某个文件在ftp服务器上是否存在? 一个才鸟的问题,请大侠们赐教! 是否能用VB编写代理服务器软件,或已有的控件? 大家快来看看呀,TomorrowStar(明日之星)的第一个软件出炉啦,现在公开发送源代码! 判断AcCESS数据库文件的版本 怎么做专业的帮助文件?
SendKeys "{TAB}"
''各个按钮功能的实现
Select Case Index
Case 0
Case 1
End Select
End Sub
Private Sub Command1_click(Index as Integer)
Command1(index).SetFocus
end sub
if index=100 then
index=-1
end if
Command1(index+1).SetFocus
end sub
if index < command1.ubound then
Command1(index+1).SetFocus
end if
end sub
不懂才问人,何必骂人。
我日你奶奶!!1