Link to home
Start Free TrialLog in
Avatar of reefcrazed
reefcrazed

asked on

VB.NET 2005 weird quirk in Tab Control, where is windows form generated code

Ok I am taking the plunge to try to keep ahead and downloaded the express edition. I have the 2005 pro edition ordered and will be here soon. I noticed a strange quirk in the tab control. I have the main form as a color of Alice Blue, I then add a tab control and do a full dock in the center. The color of the individual tab pages are "transparant". I also have a status bar at the bottom that is "transparant". The tab pages come up with a grey color even when they are set to "transparant" but the status bar goes Alice Blue as expected. Of course the tab control itself has no color properties I can see. Also how in the @#&@* do you bring up the normal Form Generated Code ? I had to generate a huge error before I could get it to show up. Then after I close it, I could not bring it up again. This should be something that is always there IMO.
Avatar of JRossi1
JRossi1

At the top of the solution explorer click 'Select All Files'.  This will show the form 'designer' that contains the form generated code.

Avatar of reefcrazed

ASKER

Ahh, so the files are indeed split up now. Why didn't I get a memo on that ?
Any ideas on the color issue ?
ASKER CERTIFIED SOLUTION
Avatar of JRossi1
JRossi1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes those are checked.
Right Click on your Desktop. Select the 'Appearance' tab. Make sure the 'Windows and Buttons' combobox is set to 'Windows XP style'

Yes they are, I am thinking this is a problem within VB 2005 though, somewhere in the tabcontrol setting.
I tested my tab control.  The default setting is Transparent.  But the control was not the gray color of the form.  So I chaged the color to white then back to transparent and it seemed to work.
Yes true this does make it the "Control Grey" color, but now change our main form to "red", it does not inherit the red color.
I think this is a bug in the control.  Only after I change it to a color then back to transparent does it inherit the form's color.
Yes it does inherit the ugly control grey, but never any other color of the parent form.