J
jaYPee
i have a tabcontrol in my form and i have a datagrid in tab2 and want
to validate the data in tab1 before the user can encode data in
datagrid. i set the the datagrid1_enter event to something like this:
Private Sub DataGrid1_Enter(ByVal sender As Object, ByVal e As
System.EventArgs) Handles DataGrid1.Enter
If IDNo.Text = "" Then
MessageBox.Show("Enter students idno information
before entering school year and semester.")
Me.IDNo.Focus()
End If
End Sub
in order that if the idno is empty which is located in tab1 the focus
will return to idno in tab1.
i used the code above w/ no luck. anyone can suggest a good way to
handle setfocus?
thanks in advance
to validate the data in tab1 before the user can encode data in
datagrid. i set the the datagrid1_enter event to something like this:
Private Sub DataGrid1_Enter(ByVal sender As Object, ByVal e As
System.EventArgs) Handles DataGrid1.Enter
If IDNo.Text = "" Then
MessageBox.Show("Enter students idno information
before entering school year and semester.")
Me.IDNo.Focus()
End If
End Sub
in order that if the idno is empty which is located in tab1 the focus
will return to idno in tab1.
i used the code above w/ no luck. anyone can suggest a good way to
handle setfocus?
thanks in advance