|
-
Jun 11th, 2003, 05:45 PM
#1
Thread Starter
Lively Member
Combobox click event
Ok since I started using vb.net I have failed to make the click event on a combobox fire. I have till this point been able to getaway with using other events for my deired result. Now, I can not. Does anyone have any clue what it takes to make a click event fire in vb.net?
Private Sub Combobox1_click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Database.SelectedIndexChanged
End Sub
Does not work
-
Jun 11th, 2003, 05:58 PM
#2
Sleep mode
I've tried this and worked fine (with dropstyle set to all options though)
VB Code:
Private Sub ComboBox1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox1.Click
MessageBox.Show("Click event was fired")
End Sub
-
Jun 11th, 2003, 08:05 PM
#3
Thread Starter
Lively Member
-
Jun 12th, 2003, 06:58 AM
#4
Fanatic Member
You were using the SelectedIndexChanged event, which is fired when the user changes the item in the cbo box, not when they just click on it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|