Hey
also ich hab ne listbox mit 2 optionen zur auswahl
wenn das erste ausgewählt ist, soll er dasdas machen und wenn das zweite dann dasdasdasd...
wie hießt die option?
????Code:if list_option.selecteditem = ?? Then
end if
push - is wichtig!
Druckbare Version
Hey
also ich hab ne listbox mit 2 optionen zur auswahl
wenn das erste ausgewählt ist, soll er dasdas machen und wenn das zweite dann dasdasdasd...
wie hießt die option?
????Code:if list_option.selecteditem = ?? Then
end if
push - is wichtig!
If ComboBox1.SelectedIndex = 1 Then
MsgBox("Item 2 angeklickt")
End If
If ComboBox1.SelectedItem = "text1" Then
MsgBox("Item mit dem Textinhalt Text1 angeklickt")
End If
Geht nicht.
list_option mit 1. Auswahl = Hide und 2. Auswahl = Unhidden
Dann beim button:
funktioniert nicht?! Auch nicht mit 0 oder 2.Code:If list_option.SelectedIndex = 1 Then
Timer1.Enabled = True
End if
helpe me muchachos
Gibt es denn ein Item mit dem Index 1? :)
Schreib mal als Sub für ComboBox_SelectedItemChanged oder was auch immer es da für nen Listener gibt:
Msgbox("Item: " & list_option.Text & " (Index: " & lst_option.SelectedIndex & ")")
habs geschafft:
If list_option.SelectedIndex.ToString = "Hide" Then
Timer1.Enabled = True
End if