Tab control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
How to use the tab control? I need to include some controls in 2 tabs an
allow users to switch between them.
 
When you create a tab control you can add tab pages to it. Select the tab
page you want and place your controls on it.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
TS said:
How to use the tab control? I need to include some controls in 2 tabs an
allow users to switch between them.

Select the 'TabPages' property of the tabcontrol after placing it on the
form, press "..." and add the tabs. Then you can comfortably switch between
the tabs in the designer and place the controls on the tabs.
 
Word of warning though with this control - not sure if others agree - it
tends to be very 'buggy'! Two problems that I have encountered with it:-
1) Sometimes the TAB order changes from what you would expect - you have to
change this to a different order and then cahnge it back. Not sure why this
happens.
2) On occasions the edit menu over controls in the TAB control mysteriously
all become 'greyed' out and you cannot use edit, cut, copy paste delete etc.
I have rescued this situation - BUT not in a consistent way - just by
closing the project and re-opening again. Moral of the this tale is always
keep a couple of backups before you start playing around!!

If anyone know other solutions to the above - please let me know as well.

Best wishes

Paul Bromley
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top