help with TabControl

hello can some one tell me how can i move the TabControl to the side of the fourm ...the program places it in the top .. thanks in advance


Answer this question

help with TabControl

  • Al_Ski

    Hi there,

    In your Form/GUI editor (where you can drag & drop controls onto the form etc) click on your TabControl control.

    In the list of properties for the tab control, there will be one called "Alignment" and you can change these so that the tabs appear on either the left or right side of the control.

    You can also manipulate the tab location in code by doing something like (NB. tabControl1 is the name of my control):

    tabControl1.Alignment = TabAlignment.Top; //Tabs on top
    tabControl1.Alignment = TabAlignment.Left; //Tabs on the left
    tabControl1.Alignment = TabAlignment.Right; //Tabs on the right

    tabControl1.Alignment = TabAlignment.Bottom; //Tabs on the bottom

    I think it's much easier to change the location of the tabs using the Form/GUI editor though.

    Hope that helps a bit, but sorry if it doesn't


  • Koltron

    hi,

    plz mark the reply as answer

    best regards



  • suparna_tech

    thanks man that work ..

  • help with TabControl