I am developing a TabControl derived from Control.
It consists of other control called TabStrip which is also derived frm control.
My TabControl can be aligned vertically or horizontally. When it is horizontal i am docking TabStrip at the Top of the TabControl. When the alignment is changed am docking it at the Right so that it becomes Vertical.
When am setting the Alignment of the TabControl to Vertical, the tabstrip is docked to the right inside the TabControl so that the tabs are shown vertically.
Now when i am using my TabControl it is working fine in designer mode, when am toggleing between horizontal and vertical. But when i run the application the tabStrip's ( even though it is docked at the Right) location becomes (0,0) and it is show to the Left. Don't know why it's location becomes (0,0) whe i run the applicatiion.??? And whern i click on the Tab then it goes to the Right. However, when in Design mode it shows very well to the Right.
Any one can please help me suggest what's going wrong here??
--Nilesh