Tab Control Focus

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Julie

    #1

    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 txtLiveNetSales Amounts.TextLen gth = 0 Then
    MessageBox.Show ("Please Enter Amount", "Live Game Net Sales
    Amount", _MessageBoxButt ons.OK, MessageBoxIcon. Information)
    txtLiveNetSales Amounts.Focus()
    Exit Sub
    End If

    Thank You
    --
    Things to Do Today:
    1.Get A Grip
    2. Hang In There
  • Julie

    #2
    RE: Tab Control Focus

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

    "Julie" wrote:
    [color=blue]
    > 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 txtLiveNetSales Amounts.TextLen gth = 0 Then
    > MessageBox.Show ("Please Enter Amount", "Live Game Net Sales
    > Amount", _MessageBoxButt ons.OK, MessageBoxIcon. Information)
    > txtLiveNetSales Amounts.Focus()
    > Exit Sub
    > End If
    >
    > Thank You
    > --
    > Things to Do Today:
    > 1.Get A Grip
    > 2. Hang In There[/color]

    Comment

    Working...