vb一道关于列表框的问题,急

2024-11-23 05:14:06
推荐回答(1个)
回答1:

问题备兆者猜庆:1
列表框名为L1,
你却有时用L1,有时用list1
2
a要定义全仿薯局变量
Dim
i
As
Integer
Dim
a
As
String
Private
Sub
L1_dblClick()
For
i
=
0
To
3
If
L1.Selected(i)
=
True
Then
L1.AddItem
a
End
If
Next
End
Sub
Private
Sub
Text1_Change()
a
=
Text1.Text
End
Sub