Link to home
Start Free TrialLog in
Avatar of Koderiter
Koderiter

asked on

Changing Tab location on a TabControl

I would like to change the location of the tabs of the TabControl to the bottom instead of the top, But I don't know where to start to do this. Any Suggestions?

Thanks,
Avatar of AlexFM
AlexFM

Set control's Alignment property to Bottom.
Avatar of Koderiter

ASKER

Thank-you for your suggestion, I didn't know that, but also I forgot to mention that I'm using the Compact Framework and It appears to NOT have an alignment property.

Any Suggestions in Compact Framework?
Sorry I didn't mention this before.
Hi Koderiter,

Not sure if this will help, but here is the line that the full framework GUI generates when you change the alignment to bottom:

            this.tabControl1.Alignment = System.Windows.Forms.TabAlignment.Bottom;

Regards
Hendrik
Hendrik,
 Thanks for the code, but unfortunately their is no Alignment property and there is not System.Windows.Forms.TabAlignment  in .NET Compact Framework.
I'm writing an application for a winCE unit, and I need to have the tabs at the bottom. Do I have to create my Own TabControl with the tabs on the bottom, or can I somehow inherit the Existing TabControl and just invert/ flip somehow?

Thanks,
Rj
Click the tab control > go to 'Properties' window at the right bottom > find the property 'Alignment' > click that field and select 'Bottom'
ASKER CERTIFIED SOLUTION
Avatar of HendrikTYR
HendrikTYR

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
Thanks for your input. I will have to write my own control.