Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Container
Message
 
To
28/06/2001 11:11:51
General information
Forum:
Visual Basic
Category:
Other
Title:
Miscellaneous
Thread ID:
00524718
Message ID:
00524808
Views:
12
>Hello Guys
>
>I have an application that has control array of frames
>On each frame I have TextBoxes.
>
>I then have a command button that corresponds to each frame
>that When it is 'clicked' causes the corresponding frame
>to become visible.
>
>What I want to do is when a frame is visible then I will only be able
>to tab between the texboxes within this frame and not texboxes that are
>on frames that are not visible.

Are you only dealing with the ZOrder property or do you really made them invisible?

I made a small test and making frames invisible do not allow to tab in its textboxes.

Place 2 frames, some textboxes in each, 2 command buttons and 1 label on a form.
Private Sub Command1_Click(Index As Integer)
    Frame1(0).Visible = False
    Frame1(1).Visible = False
    
    Frame1(Index).Visible = True
End Sub

Private Sub Text1_GotFocus(Index As Integer)
    Label1.Caption = "Current control index is " & Index
End Sub
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform