Hi,
If anyone can tell me how, I'd love to know.
Thanks.
Printable View
Hi,
If anyone can tell me how, I'd love to know.
Thanks.
What do you mean?
Click Project > Components... and make sure Common Controls 6.0 (or whatever version you have) is checked. Than place the TabStrip Control on your form and put the Textbox on your form, and you can change it like this:
Code:Private Sub TabStrip1_Click()
'First Tab clicked
If (TabStrip1.SelectedItem.Index) = 1 Then Text1.Text = "You clicked tab 1"
'Second Tab clicked
If (TabStrip1.SelectedItem.Index) = 2 Then Text1.Text = "You clicked tab 2"
End Sub
Think he want's it on top of the TabStrip :(
I think you need some serious subclassing look at:
http://www.mvps.org/vbnet/
Maybe they have some.
If Matthew understood you well (meaning I didn't ;)) it's the easiest to use a Select Case instead of If/Then.
Have fun!
It stays on top. Just put the textbox right on the tabstrip and it'll be on top, at least for me it is.
You could also use the ZOrder method to put the textbox on top of the Tabstrip control.
In design mode, simply draw the TextBox on the TabStrip. If it appears behind the TabStrip, right-click the TextBox and select Bring to Front