0

Hi guys,
Im starting a new project this week for my computing course and to be honest - i didnt like my last one as it had many forms which i thought was quite tacky.
So i had a thought, how can i use for example, 1 or 2 forms but still be able to display the same amount of content. Similar to a web browser using tabs, its all still inside of the same "form/window" but has different sections.

I thought about using the tabs that are in the tools section of VB10 but just wanted to know if you guys had a better way.


Regards

Ross

3
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by rosstafarian
0

hi
you can use panels

put your controls in it

and when u need it

use

Panel1.Visible = True

or

Panel1.Visible = False
0

Panels are in the Toolbox.
I would use a TabControl since it is easier to work with in .Designer and if needed, hide the tabs.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        '// Hide Tab Headers in TabControl.
        With TabControl1.TabPages(0)
            TabControl1.Region = New Region(New Rectangle(.Left, .Top, .Width, .Height))
        End With
    End Sub

To select a TabPage afterward, check out this thread.

Edited by codeorder: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.