CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2007
    Posts
    51

    Button to bring a tab to the forefront?

    I have several tabs on my form. I want there to be a button that, when pressed, brings a different tab to the forefront. Can anyone help me with how to do this?

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Button to bring a tab to the forefront?

    Something like :
    Code:
            TabControl1.SelectedIndex = 1
    Would make the second tabpage ( IOW tabpage2 ) active

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

Featured