
05-18-2004, 12:25 PM
|
 |
Jedi Coder
* Expert *
|
|
Join Date: Aug 2002
Location: Abingdon, MD
Posts: 3,438
|
|
Why not just do:
Code:
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged, ComboBox2.SelectedIndexChanged
CheckDataSave
nextcontrol.Select
End Sub
or some variation of this? If you're allowing the user to cancel the selection of the new selection in the CheckDataSave then you can do:
Code:
Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged, ComboBox2.SelectedIndexChanged
If CheckDataSave Then nextcontrol.Select
End Sub
|
|