469,592 Members | 2,026 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,592 developers. It's quick & easy.

Tab Control Focus

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
--
Things to Do Today:
1.Get A Grip
2. Hang In There
Nov 22 '05 #1
1 1287
Thanks anyways Guys, I figured it out before I got an answer from the group.

"Julie" wrote:
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
--
Things to Do Today:
1.Get A Grip
2. Hang In There

Nov 22 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Lyn | last post: by
2 posts views Thread by bill | last post: by
1 post views Thread by clickon | last post: by
4 posts views Thread by Jon Slaughter | last post: by
3 posts views Thread by Nathan Laff | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.