界面有一个组合框,comb1,style=2,text不可写,只读
sub comb1_click()
SendData "00 00 00" '发送命令
end sub sub Sendtimer_Time()
sendtimer.interval=1000 '每秒刷新一次界面
RefreshView
end sub sub RefreshView()
comb1.listindex=2
end sub 所遇问题:我点击comb1可向串口发送命令,但我每秒会刷新界面,comb1.listindex=2会重新触发SendData函数,又要发送一次命令,请问如何解决,
提示:组合框类型为2,text不可写
谢谢!!
sub comb1_click()
SendData "00 00 00" '发送命令
end sub sub Sendtimer_Time()
sendtimer.interval=1000 '每秒刷新一次界面
RefreshView
end sub sub RefreshView()
comb1.listindex=2
end sub 所遇问题:我点击comb1可向串口发送命令,但我每秒会刷新界面,comb1.listindex=2会重新触发SendData函数,又要发送一次命令,请问如何解决,
提示:组合框类型为2,text不可写
谢谢!!
解决方案 »
- 关于控件导入问题,
- VB读取Access数据存入SQL,发现SQL中特殊字符有乱码!
- EZTW32.dll 怎么定义扫描区域
- listbox为多选时,如何得到所有被选择的项
- xml不是支持中文吗?为什么标记中有顿号(、)中文标点等符号时会报错?(在线等待)
- 求TeeChart 控件 license!
- enhydraboy(乱舞的浮尘)拿分!
- 如何在两台机器间建立TCP/IP连接
- 怎么判断用户输入的值在0到9之间?
- 找人做外包项目,熟悉OA项目者优先
- Provider=SQLOLEDB.1;Persist Security Info=True;User ID=sa;Password=;Initial Catalog=database;Data Source=" & SVName APP=[ AppNa
- 请问C/S结构网络版软件如何控制客户端的数量呢?
SendData "00 00 00" '发送命令
end sub在change事件里写,或者用个全局量来控制什么时候触发事件