Visual Basic .NET Forums    

Go Back   Visual Basic .NET Forums > VB.NET > Windows Forms

VB.NET Forums Newsletter Signup:
Email address:


Windows Forms Discussion related to Winforms application development

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-08-2008, 2:09 AM
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Oct 2008
Posts: 5
Reputation: 0
chiba_11 is on a distinguished programming path ahead
Default switching forms using tab control

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.
Reply With Quote
  #2 (permalink)  
Old 10-08-2008, 4:20 AM
VB.NET Forum Genius
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jun 2008
Location: Vienna, Austria
Age: 21
Posts: 183
Reputation: 12
Robert_Zenz is on a distinguished programming path ahead
Default

Hello.

What do you mean?
A tabbed MDIClient?

Bobby
__________________
Greatest Obfuscator ever: EazFuscator
Reply With Quote
  #3 (permalink)  
Old 10-08-2008, 4:27 AM
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Oct 2008
Posts: 5
Reputation: 0
chiba_11 is on a distinguished programming path ahead
Default

thanks for replying. nope. just an ordinary form. here's what I've done. i created 4 forms when i click one of the tab pages i want it to go to the other forms.
Reply With Quote
  #4 (permalink)  
Old 10-08-2008, 4:44 AM
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Oct 2008
Posts: 18
Reputation: 4
Never is on a distinguished programming path ahead
Default

'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.
Reply With Quote
  #5 (permalink)  
Old 10-08-2008, 5:06 AM
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Oct 2008
Posts: 5
Reputation: 0
chiba_11 is on a distinguished programming path ahead
Default

thanks for the help. i'll try this one.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 3:21 PM.




Click to advertise here

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
For advertising opportunities click here.