Results 1 to 3 of 3

Thread: how Can I Change the tab Color in Tab Control

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2007
    Posts
    71

    Talking how Can I Change the tab Color in Tab Control

    I Use this code to create atps in TabControl

    Code:
               For r = 0 To 10
                    TabControl1.TabPages.Add(r , "New Tab")
                Next r
    how Can I Change the tab Color in Tab Control

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

    Re: how Can I Change the tab Color in Tab Control

    It's not straight-forward. There's no property for that. You need to owner-draw the TabControl.

    http://www.vb-helper.com/howto_net_ownerdraw_tab.html
    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

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2007
    Posts
    71

    Re: how Can I Change the tab Color in Tab Control

    thank you mr jmcilhinney

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