Results 1 to 5 of 5

Thread: putting a textbox in a tabStrip?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    31
    Hi,

    If anyone can tell me how, I'd love to know.

    Thanks.

  2. #2
    Guest
    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

  3. #3
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    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!
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  4. #4
    Guest
    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.

  5. #5
    Guest
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width