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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top