Form Autosize

  • Thread starter Thread starter Raymond Chiu
  • Start date Start date
R

Raymond Chiu

Dear all,

(1) If I have two datagrid and some textboxs, labels and buttons in the
form, How can I do if there is a resize of the form and I just want only
datagrids which can auto resize to the proportional to the form size.

(2) How about in the web form?

Thanks,

Raymond
 
Raymond said:
(1) If I have two datagrid and some textboxs, labels and buttons in the
form, How can I do if there is a resize of the form and I just want only
datagrids which can auto resize to the proportional to the form size.

Use the Anchor property on each Control to "attach" it to any of the
four edges of its container Control (or the Form itself).
(2) How about in the web form?

No idea.

HTH,
Phill W.
 
Dear all,

(1) If I have two datagrid and some textboxs, labels and buttons in the
form, How can I do if there is a resize of the form and I just want only
datagrids which can auto resize to the proportional to the form size.

(2) How about in the web form?

Thanks,

Raymond

In a web form you'll need to use CSS styles. It's somehow more complex
and the method will vary greatly with your needs (page structure).
 
Back
Top