Tab Control Focus

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to set some checks on my tab pages. I have many sets of tab
control pages with many controls on each page. I have got the code on the
button to check each control to make sure it has an amount. It then sets the
focus to that control if it does not have an amount. If I am on a different
tab page and do a check, it will set the focus, but it will not take me to
the tab page that has the control with the focus.

What code do I need to place in the following code to get it to go to the
specific tab page with the control with the focus?:

If txtLiveNetSalesAmounts.TextLength = 0 Then
MessageBox.Show("Please Enter Amount", "Live Game Net Sales
Amount", _MessageBoxButtons.OK, MessageBoxIcon.Information)
txtLiveNetSalesAmounts.Focus()
Exit Sub
End If

Thank You
 
Thanks anyways Guys, I figured it out before I got an answer from the group.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top