Yorkshireman2
Programmer
I have had much trouble with my first use of vb.net (2008) where an existing event handler is NOT highlighted in the event list. So if I select Mycombobox1 from the control list, NO event is shown in bold in the event list and when I then dropdown the event list, there are NO highlighted events in there!
I found this several times while troubleshooting events that don't fire when I expected them to.
The latest is a combobox which I bind to a datasource and then set SelectedIndex to 0 in my form load procedures; the SelectedIndexChanged event does NOT fire.
The same program written in VB6 works fine, so I thought it was a problem of VB.net. However the fact that the SelectedIndexChanged event is not shown highlighted in the combobox's event list is strange.
Each time I find this, I cut the code from the event handler, delete the event handler 'title and End Sub', then select the control and select SelectedIndexChanged event from the list to create a new 'title/End Sub', then paste my code back in.
Surprise.. now the event shows up highlighted in the list.
Why are my events not being recognised?
(It just happened again on another)
I found this several times while troubleshooting events that don't fire when I expected them to.
The latest is a combobox which I bind to a datasource and then set SelectedIndex to 0 in my form load procedures; the SelectedIndexChanged event does NOT fire.
The same program written in VB6 works fine, so I thought it was a problem of VB.net. However the fact that the SelectedIndexChanged event is not shown highlighted in the combobox's event list is strange.
Each time I find this, I cut the code from the event handler, delete the event handler 'title and End Sub', then select the control and select SelectedIndexChanged event from the list to create a new 'title/End Sub', then paste my code back in.
Surprise.. now the event shows up highlighted in the list.
Why are my events not being recognised?
(It just happened again on another)