change picturebox size , spacing between buttons when user changes window size

190 views Asked by At

i am developing a win form application using c# ,in form 1 there is a datagridview, a panel which holds some text boxes , another panels which holds some labels

how to get this : size of datagridview , spacing between panels,must be changed automatically when the user changes window size

for example as we see in web browser, i think there is a term something like "responsive " ??

1

There are 1 answers

0
Rohit On

You can use Anchor of your controls.Using anchor you can anchor it top ,bottom left right take a look at this

Or you can also use Table Layout Panel