You must Sign In to post a response.
  • Category: .NET

    How to hide tab control border or change border color?

    Friends,
    In vb.net how to hide tab control border or change border color?
  • #681609
    hi,
    refer this url
    http://social.msdn.microsoft.com/Forums/eu/vbide/thread/77f5b624-45af-492b-aef0-55e9f6176128

    http://www.codeproject.com/Articles/91387/Painting-Your-Own-Tabs-Second-Edition

    Rayala HariKishore

    try..try..try...you achieved it.
    http://rayalaharikishore.wordpress.com/

  • #681682
    you can not remove tab control border directly. but you can give same look to it.
    1. DrawMode to "OwnerDrawFixed"
    2. try usng DrawItem event
    check following code


    private void tabControl1_DrawItem(object sender,
    System.Windows.Forms.DrawItemEventArgs e)
    {
    Graphics g = e.Graphics;
    Pen p = new Pen(Color.Blue,4);
    g.DrawRectangle(p,this.tabPage1.Bounds);
    }

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.