hi i want to use Tab in my forms, i added Microsoft Windows Common Control 6.0 n tried to use tabstrip but it does'nt help, i cant add my controls to tabstrip.
Printable View
hi i want to use Tab in my forms, i added Microsoft Windows Common Control 6.0 n tried to use tabstrip but it does'nt help, i cant add my controls to tabstrip.
The Tabstrip is useless. You need to create a frame for each tab you want to have. Then add your controls to
the frames. Then show/hide each frame in respect to the tab being clicked.
An easier solution is to use the SSTab control is in windows common controls. It is a true container control.
There are two Tab controls available: TabStrip (the one you're trying to use) and SSTab (MS Tabbed Dialog in the components list).
To use first you will need to add a container such Picturebox or Frame for each tab you create so you can show/hide appropriate ...
With SSTab it's a bit easier - each atb acts like container, however this control has many many unresolved problems which quite often lead you to more serious issues.
My personal preferences - TabStrip from Win Common library.
well can u pls post me a sample code
OK, here is a quicky:
Also, each picturebox will have all controls related to selected tab pasted directly onto it.VB Code:
Private Sub TabStrip1_Click() Select Case TabStrip1.SelectedItem.Key Case "audio" pctAudio.ZOrder 'or set visible property Case "video" pctVideo.ZOrder End Select End Sub
Using the SSTab control, there is no sample code. You just click the tab you want to add controls to, etc.
Then when you run your form cand click on each tab, it changes the related control to the selected tab.
well i tried to manage it myself both of them, but still a code snippet would be of great help
ya just like i told ya i managed to do it maself
If you need to add the tab control, select - "Microsoft Tabbed Dialog Control"
about tabstrip, how can i change the number of tabs, how do i add frames or picturebox to it, n last can i add a whole form in a tabstrip
You don't add anything "to it" - you create a "stand along" controls but you'll control them in the way I've already show you in my earlier sample.
Also, to add more tabs right click on the control and follow simple on-screen wizard.
You may do at run time but nthat would be the next step for you ...
hi well i managed to do it through the sample code but looks like a headache this tabstrip, which control would u guys prefer to use ?
The SSTab control or Rhinos favorite - TabStrip from Win Common library. I havent seen Rhinos
suggestion but either of the two are better then the tabstrip.
Quote:
Originally Posted by RobDog888
Well yeah I have been using the SSTab control myself and I find it better than tabstrip.