Resize Button according to windows form size
-
suppose i have label and button on textbox and i want that if i resize my win form then my label and button size and position will change. i got the solution in wpf but i am working with win form apps. here i am giving the url from where you can see what kind of output i am looking form. the url is http://i.stack.imgur.com/QeoVK.png . please see the image and tell me how can i implement the same output in win form apps. please help me with code snippet in c#.thanks.
-
suppose i have label and button on textbox and i want that if i resize my win form then my label and button size and position will change. i got the solution in wpf but i am working with win form apps. here i am giving the url from where you can see what kind of output i am looking form. the url is http://i.stack.imgur.com/QeoVK.png . please see the image and tell me how can i implement the same output in win form apps. please help me with code snippet in c#.thanks.
Use of Anchor property will help you in this case Layout has different properties like Anchor, Margin, Dock, Size, Min size Max size. Use these in combination to achieve the output you are looking for Happy Coding :)