首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VB >

text1内容不能依据下拉按钮内容自动填写

2013-06-19 
text1内容不能根据下拉按钮内容自动填写本帖最后由 bcrun 于 2013-03-29 12:27:08 编辑Private Sub cbo1_C

text1内容不能根据下拉按钮内容自动填写
本帖最后由 bcrun 于 2013-03-29 12:27:08 编辑

Private Sub cbo1_Change()
If cbo1.Text = "1" Then
 Text1.Text = "4"
ElseIf cbo1.Text = "2" Then
 Text1.Text = "5"
 ElseIf cbo1.Text = "3" Then
  Text1.Text = "6"
 ElseIf cbo1.Text = "4" Then
  Text1.Text = "7"
End If
End Sub

Private Sub Form_Load()
cbo1.AddItem "1"
cbo1.AddItem "2"
cbo1.AddItem "3"
cbo1.AddItem "4"
End Sub


text1内容不能根据下拉按钮内容自动填写,什么情况,感谢各位
[解决办法]
使用 Click 事件。

Private Sub cbo1_Click()

热点排行