Ok. Let me re-word my problem.
I have a MultiPage control on my form which has 3 pages
(This is different from the Tab control, but looks exactly similar)
Each "page" (tab) has a frame on it.
So page 1 has frame 1 on it,
page 2 has frame 2 on it
page 3 has frame 3 on it.
Frames are used to hold all the related controls (textboxes,label,combos etc) together.
A click on the pages (or tabs) on top of this Multipage control generates the following event:
Private Sub mPage_change()
If mPage.Value = 0 Then
Frame1.Visible = True
End if
If mPage.Value = 1 Then
Frame2.Visible = True
End if
If mPage.Value = 2 Then
Frame3.Visible = True
End if
End Sub
Now here is the problem:
If user selects page 1. The corresponding frame becomes visible and the user starts typing in a textbox on that frame.
The cursor/focus is in the textbox. Now the user decides to change the page (tab).
The first click by user just selects (gets focus on) the "MultiPage Control".
The user has to click once more to actually initiate the mPage_change() event.
The user gets annoyed when he clicks the tabs on the top for the first time and nothing happens.
Is there any way we can get the "focus" and "change" event both done in single user click?
Thanks.
Enter your message below
Sign in or Join us (it's free).