Visual Basic .NET Forums  

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

Windows Forms Discussion related to Winforms application development

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-08-2008, 1: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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-08-2008, 3:20 AM
VB.NET Forum Master
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Jun 2008
Location: Vienna, Austria
Age: 22
Posts: 337
Reputation: 275
Robert_Zenz master of VB.NETRobert_Zenz master of VB.NETRobert_Zenz master of VB.NETRobert_Zenz master of VB.NETRobert_Zenz master of VB.NETRobert_Zenz master of VB.NETRobert_Zenz master of VB.NETRobert_Zenz master of VB.NETRobert_Zenz master of VB.NET
Default

Hello.

What do you mean?
A tabbed MDIClient?

Bobby
__________________
Don't give TypeCasting Errors a chance, say ON to Option Strict!
Greatest Obfuscator ever: EazFuscator (Freeware)
Greatest Reflection Tool ever: .NET Reflector (Freeware) with Add-Ins
Greatest Introspection Tool ever: Gendarme (GPL)
Greatest MySQL FrontEnd ever: MySQL-Front (Shareware)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-08-2008, 3: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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-08-2008, 3:44 AM
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Oct 2008
Posts: 18
Reputation: 12
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-08-2008, 4: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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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 6:38 PM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0


For advertising opportunities click here.