when maximize form, rearrange child components of form

  • Thread starter Thread starter Kayıhan
  • Start date Start date
K

Kayıhan

i have a datagridview on my Form. When i maximize form ,datagridview remains
in its initial size. i want it rearrage itself with parent form. is it
possible to solve on v.studio design mode without writing extra code(using
events).
 
I am not sure what exactly you mean.
You can Set Anchor on your control,
this will resize and rearrange the controls on your form
depending your Anchor settings.

Best regards
 
i have a datagridview on my Form. When i maximize form ,datagridview remains
in its initial size. i want it rearrage itself with parent form. is it
possible to solve on v.studio design mode without writing extra code(using
events).

Kayhan,
You can use DataGridView's "Dock" and "Anchor" properties to fit its
size when the form is resized.

Thanks,

Onur Güzel
 
Back
Top