G
Guest
Hi,
I am new to VB,
I created a comboBox using VB and included 3 items in it
I created a command button and a label button.
I would like to display selection from comboBox into the label box when I
click on the command button.
I am using the following code but I keep getting the first value entered in
comboBox.
Does the index or ListIndex the one that gets updated with the value
selected from the combo box? I need to save that value to do some math with
it but before I do that I want to make sure that it is in fact the last
selection.
Private Sub Command1_Click()
Label1.Caption = Combo1.ItemData(Index)
End Sub
Private Sub Label1_Click()
End Sub
Thanks
I am new to VB,
I created a comboBox using VB and included 3 items in it
I created a command button and a label button.
I would like to display selection from comboBox into the label box when I
click on the command button.
I am using the following code but I keep getting the first value entered in
comboBox.
Does the index or ListIndex the one that gets updated with the value
selected from the combo box? I need to save that value to do some math with
it but before I do that I want to make sure that it is in fact the last
selection.
Private Sub Command1_Click()
Label1.Caption = Combo1.ItemData(Index)
End Sub
Private Sub Label1_Click()
End Sub
Thanks