Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set controls on center of the winform?

Tags:

c#

.net

winforms

Hello I am trying to set controls(i.e. Label or Textbox) on center of the form. I need this while i maximize that form. Can i set it statically or dynamically. Anyone have an idea than please tell me asap...

like image 460
user968441 Avatar asked May 28 '12 15:05

user968441


People also ask

How do I center a button in Windows Forms?

From the Format menu, choose Center in Form.


1 Answers

Place the control on the center and set Anchor property to None.

like image 84
Adam Avatar answered Sep 21 '22 23:09

Adam