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.



Recommended Answers

All 4 Replies

you can use panels

put your controls in it

and when u need it


Panel1.Visible = True


Panel1.Visible = False

are panels in the tools menu? - havent got access to vb atm

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.

ok thankyou - i will look into it

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.