Results 1 to 3 of 3

Thread: Tab Control (X Button)

  1. #1

    Thread Starter
    Hyperactive Member Philly0494's Avatar
    Join Date
    Apr 2008
    Posts
    485

    Tab Control (X Button)

    I need to add an X button on my tab headers so that the user can close the tabs easily and intuitively.

    I want it to work like firefox tabs, where you can press the X on any tab to close it at any time.

    Is there any way to do this?

  2. #2
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: Tab Control (X Button)

    I am not entirely sure but i am guessing you would have to overide the paint event of the tab.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Tab Control (X Button)

    You'd have to draw the tabs yourself. If you search the web for owner draw tabcontrol or the like you should find some examples.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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