Windows Develop Bookmark and Share   
 index > Windows Forms General > TabControl problem...
 

TabControl problem...

I have a form that consists of 1 TabControl with 2 TabPages.

When one button is clicked on my main form, the first tab page needs to become visible.

When the second button is clicked, the second tab page needs to become visible.

I have tried using

tabControl1.TabPages[0].Focus(); and BringToFront();

But with no luck, the tab page 0 comes up anyway.

How can I fix this?

Thanks,

Evan Mulawski1  Thursday, May 17, 2007 7:04 PM
You should set SelectedTab property of TabControl to the page you need to select.
boban.s  Thursday, May 17, 2007 8:17 PM
You should set SelectedTab property of TabControl to the page you need to select.
boban.s  Thursday, May 17, 2007 8:17 PM

You can use google to search for other answers

Custom Search

More Threads

• Delayed Sending of an Email
• crystal reports
• modify the contents of a text box on a windows app from a class
• Creating new textboxes during runtime
• App.Config with File= option does not work in 2005
• Flickering effect
• How do I get an Excel range address when pasting/droping to a TextBox
• 2 Questions about databases in .NET
• LINQ problem
• paintbox