Center Controls

How can I center the controls in the form

Thanks



Answer this question

Center Controls

  • Kevin Schaefer

    There is no code required... These are design time properties.
  • vijay99

    Thanks, but can give me a code for that
  • technik733

    At design time...

    Bring up you form in design mode

    Select you control you want to center and then from the Menu, select Format > Center In Form.

    Which is probably OK in fixed size forms.

     

    If its a sizable form - you may want to look at Anchoring the control to the form edges.  Select the control properties , Anchor and tell it what you want to anchor to.

     


  • njm137

    Thanks very much
  • essgee

    I didn't get it.

    Can you explain me more, please

    What does mean "Select to Format > Center In Form."


  • Center Controls