General discussion

Locked

How to use a MultiPage in Visual Basic?

By Mike@IHS ·
Hi,

I've added a MultiPage control to my form and created 3 tabs. In each tabs, I want to add different grids linked to an access database.

When I added the first grid (on top of a Frame) and I cycle through the different tabs, the grid is displayed in all 3 tabs. So, it seems that my grid is not really "inside" the first tab, it's just on top of the multipage regardless of the selected tab.

Could anyone please provide some help with this!?

Thanks!

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

How to use a MultiPage in Visual Basic?

by sl-campbell In reply to How to use a MultiPage in ...

Are you using the SSTab(Microsoft Tabbed Dialog Control), or are really using the Microsoft Forms 2.0 MultiPage Control. You should be using the first one. The second one can be referenced in a project, but the DLL itself is not licensed for distribution (however, if you still want to use it then you can - just do not distribute the fm20.dll - it will already be on most MS OS systems anyways).

If you are using the SSTab:

You need to make sure that the grid is a Control of the Frame CONTAINER and the Frame is a Control of the MulriPage CONTAINER, and not just on top of it.

Click on the Grid and Cut it out with Ctrl-X. Then, with-out doing ANYTHING else, Click ON the Frame and then paste the Grid back in with Ctrl-V.

The click on the Frame with the Grid and press Ctrl-X. Then Click on the Tab control and press Ctrl-V.

Do the same for each Tab.


If you are using the MultiPage control:

You need to check in code on the MultiPage click event which tab was clicked, andbased on that, set the visible property of each fram to False and the fram that needs to be shown to true.

Primitivly speaking:

Private Sub MultiPage1_Click(Index As Long)

Frame1.Visible = False
Frame2.Visible = False
Frame3.Visible = False

Select Case Index
Case 0
Frame1.Visible = True
Case 1
Frame2.Visible = True
Case 2
Frame3.Visible = True
End Select
End Sub

Collapse -

How to use a MultiPage in Visual Basic?

by Mike@IHS In reply to How to use a MultiPage in ...

Poster rated this answer

Collapse -

How to use a MultiPage in Visual Basic?

by Mike@IHS In reply to How to use a MultiPage in ...

This question was closed by the author

Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums