Forms and resolution independent display

  • Thread starter Thread starter eljainc
  • Start date Start date
E

eljainc

Hello,

I have developed a simple c# .NET program in VS2005. It runs fine on
one PC. However,
on another PC, the form displays too small. It does not stretch to fill
the screen and resize
proportionately. Is there a library available to do this or how can I
do this in code so that
the form will "stretch" to fit the entire screen?

Mike McWhinney
 
Hi Mike,
if you want to make the controls on your form to move dependig on the size
of the form you will need to set the Dock and Anchor properties of each
control. Setting these properties will aloow your controls to move to fill
the desired size. They will not scale the conrols just move them as their
paretn container changes in dimension.

Mark.
 
Thanks for the message, Mark.

However I really would like to scale or resize the controls as well.
Dock/Anchor properties won't do me much good here.

Mike
 

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