dimanche 29 mars 2015

How to scale the size of textbox in Windows c# form

What I'm trying to do here is to have a textbox that'll grow in size as the tool is maximized. This is the default size: enter image description here


This is when I increase the size of the form: enter image description here


I have used 'Anchor' property for this. Under the 'Target Database' section, the server has Top Anchor property set. While for it's textbox, Top, Left, Right is used.


What exactly I want is for the textbox to grow in size to the right and also move to right.


Is it possible? Please suggest ways to do it. Thanks in advance.


Aucun commentaire:

Enregistrer un commentaire