![]() |
|
|||||||
| Windows Forms Discussion related to Winforms application development |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
hi, everyone. i'm just new here and in using vb.net. i just want to know how to switch forms using the tab control. hope someone will help. tnx.
|
|
|||
|
Hello.
What do you mean? A tabbed MDIClient? Bobby
__________________
Greatest Obfuscator ever: EazFuscator |
|
|||
|
'Assuming the 4 forms are already shown within your mdiParent
Private Sub TabControl1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TabControl1.SelectedIndexChanged Select Case TabControl1.SelectedIndex Case 0 Form1.Activate() Case 1 Form2.Activate() Case 2 Form3.Activate() Case 3 Form4.Activate() End Select End Sub Note: Try to determine your requirements carefully before starting your project. A TabControl might be sufficient enough to do what needs to be done. |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|