Tabcontrol and window in Visual Studio

W

wheels619

Some GUI questions for Visual Studio C#:
I'm using a TabControl component, somehow it defaults to the middle
tab. How can I make it default to the first tab?

My program has two window forms; when I launch my program, how can i
make one window appear over the other?

Thanks
 
S

Shoveler

In order to show the tab you want, you must assign:

MyTabControl.SelectedTab = MyDefaultTab

MyDefaultTab is a "TabPage" object, which is one of many tabs in the
MyTabControl.TabPages collection.

Some GUI questions for Visual Studio C#:
I'm using a TabControl component, somehow it defaults to the middle
tab. How can I make it default to the first tab?


I don't know much about this question, sorry.
 

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

Top