Results 1 to 2 of 2

Thread: Oh vb gods answer this please!!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 1999
    Posts
    81

    Post

    on a tabstrip control (Microsoft Common COntrol) how can i do this

    where tab.caption = "name" remove.tab = "name"

    get index where caption name = "name"

    thanks
    brooke

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    Ask and yea shall receive

    Code:
    Dim intIndex As Integer
        
        For intIndex = 1 To TabStrip1.Tabs.Count
            If TabStrip1.Tabs(intIndex).Caption = "name" Then
                TabStrip1.Tabs.Remove (intIndex)
                MsgBox "Removed tab " & intIndex
            End If
        Next

    ------------------
    Marty
    What did the fish say when it hit the concrete wall?
    > > > > > "Dam!"

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