Dropdownlist???? (VB)

elf

Active member
Joined
Jun 4, 2003
Messages
37
Dropdownlist????

Does abyone knoes how to display the things u chose from the drop down list???

for example i have a dropdownlist which contained time and then i chose a time that i want but how to display it by using a label???
 
what sort of dropdown list ? like a combobox dropdown?
Code:
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        ComboBox1.Items.Add("text here")
    End Sub

    Private Sub ComboBox1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox1.Click
        Label1.Text = ComboBox1.SelectedText
    End Sub
 
Back
Top