Click here to Skip to main content
15,906,569 members
Articles / .NET
Tip/Trick

TabControl RightToLeftLayout

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
11 Nov 2010CPOL 9.1K   2  

For making tab control righttoleft layout just add the below code in new or form load.You can make loop through the tabpages as well.


VB
For Each ctrl As Control In Me.TabPage1.Controls
         Dim x As Integer = ctrl.Left
         ctrl.Left = Me.TabControl1.Width - x - ctrl.Width
     Next

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United Arab Emirates United Arab Emirates
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --