Technology and Online Community For All
welcome JOIN US NOW AND FEEL THE DIFFERENCE headbang

Technology and Online Community For All

What You See Is What You Get
 
HomeCalendarGalleryFAQSearchMemberlistUsergroupsRegisterLog in
September 2017
SunMonTueWedThuFriSat
     12
3456789
10111213141516
17181920212223
24252627282930
CalendarCalendar
Latest topics
» Uniblue PowerSuite
Mon Apr 09, 2012 7:27 pm by BlitzKrieG

» Ova Drive Hider
Fri Mar 02, 2012 8:48 am by CodeWarrior

» Ova Folder Security
Mon Feb 27, 2012 5:06 pm by CodeWarrior

» SPSBox
Sun Feb 26, 2012 4:24 am by CodeWarrior

» Norton [all here]
Thu Feb 23, 2012 8:01 am by BlitzKrieG

» OvaSystemSolution CVRS System
Sat Feb 18, 2012 6:06 am by CodeWarrior

» Avril Lavigne - Smile
Sat Jan 28, 2012 7:14 am by ^PiNKHeRMioNe

» Hot N Cold- Katy Perry
Sat Jan 28, 2012 7:11 am by ^PiNKHeRMioNe

» America's next top model (All Stars) Lisa D'Amato
Sat Jan 28, 2012 6:55 am by ^PiNKHeRMioNe

Search
 
 

Display results as :
 
Rechercher Advanced Search
Who is online?
In total there are 2 users online :: 0 Registered, 0 Hidden and 2 Guests

None

Most users ever online was 25 on Fri Dec 19, 2014 9:47 pm
Top posters
trekyboy
 
BlitzKrieG
 
ZNABiRA
 
EDI`STEALTH
 
*B o R g Z
 
SHY
 
CodeWarrior
 
^PiNKHeRMioNe
 
RaiJin
 
chaotic`
 
Similar topics
Statistics
We have 239 registered users
The newest registered user is Hellraiser666

Our users have posted a total of 948 messages in 662 subjects

Share | 
 

 TUT for Adding Tab and Caption in TabStrip

View previous topic View next topic Go down 
AuthorMessage
CodeWarrior
Code Master
Code Master


Join date : 2011-12-20
Male Posts : 22

20111228
PostTUT for Adding Tab and Caption in TabStrip

This is a simple Tutorial for TabStrip in VB6 Code

Open New Project using VB6 Language
Then you must need
1. One TabStrip
2. One Texbox for the name of tab you want to add
3. Two Command Button for Adding and Removing Tab

First Press Crtl + T to Open Components
Then Add the Components Microsoft Windows Common Controls 6.0 (SP6) then Click Ok
Now you have the Microsoft Windows Common Controls 6.0 on your Project

Double Click the Command1 Button and Put This Code
Code:
Private Sub Command1_Click()
    Dim i As Integer
    For i = 1 To TabStrip1.Tabs.Count
        If TabStrip1.Tabs(i).Selected = True Then
            TabStrip1.Tabs.Add.Caption = Text1.Text '<=== Text1 is The Tab Caption
            Exit For
        End If
    Next i
End Sub

Same Process Double Click the Command2 Button and Put this Code

Code:

Private Sub Command2_Click()
    Dim i As Integer
    For i = 1 To TabStrip1.Tabs.Count
        If TabStrip1.Tabs(i).Selected = True Then ' <=== Selected Tab to Remove
            TabStrip1.Tabs.Remove i '<==== Remove Tab
            Exit For
        End If
    Next i
End Sub

Now Try to Run your Simple Project TabStrip Adding Tab With Name and Removing Tab

Back to top Go down
View user profile

 Similar topics

-
» Adding A Floating Menu!
» paultan.org Caption Contest *malaysia only*
» [Help] how to add multiple testcases in a TestSuite through Selenium IDE
» Sennheiser Asia's KOTR Caption Contest
» user-extensions.js file is needed
Share this post on: Excite BookmarksDiggRedditDel.icio.usGoogleLiveSlashdotNetscapeTechnoratiStumbleUponNewsvineFurlYahooSmarking

TUT for Adding Tab and Caption in TabStrip :: Comments

No Comment.
 

TUT for Adding Tab and Caption in TabStrip

View previous topic View next topic Back to top 

Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Technology and Online Community For All :: Technical Support :: Programming Related :: Visual Basic 6/VB.NET-
Jump to: