Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing tab item of tabcontrol on design view

I'm trying to add control to another TabItem on design view, but I can only see the first TabItem with all the controls I previously added and at the moment I can only add controls by hard coding on code view window, therefore I have to compile the program in order to see the results of the controls added by hard coding.

Any help would be appreciated.

like image 836
Audel Avatar asked Feb 11 '10 20:02

Audel


People also ask

How do you use TabControl?

To create a TabControl control at design-time, you simply drag and drop a TabControl control from Toolbox onto a Form in Visual Studio. After you drag and drop a TabControl on a Form, the TabControl1 is added to the Form and looks like Figure 1. A TabControl is just a container and has no value without tab pages.


1 Answers

I ran into an issue recently that sounds like this, basically the designer isn't recognizing that you've selected something other than the first tab. If you go to the properties dialog for that tabitem control and set the IsSelected property to True it should display that tabs content area.

However, I suspect that the real problem is that you don't have VS2008 SP1 installed since they fixed it with that update. Unfortunately Windows Update doesn't tell you that SP1 exists, not even VS2008's menu "Help>Check for Updates" tells you it's available. You'll have to go to;

http://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en

to get it yourself. After it's installed the Tab Control works the way you'd expect it to work.

PS: Don't forget the 3 security updates to SP1, all 500MB of them. Windows Update finds them just fine.

like image 97
Jay13 Avatar answered Oct 16 '22 20:10

Jay13