Hello,

I am writing a Windows Forms application for users with a variety of screen
resolution settings (800 x 600, 1024 x 768, etc.) What is the best (fastest)
way to design an interface in which the controls will be positioned in an
appropriate scale regardless of the screen resolution? I started declaring
all the controls in my code and setting size properties, and testing logic to
determine where the controls should be positioned, but Iâ??m thinking there has
to be a better way.

Thanks in advance for your help!

Gary

RE: Interface design by MaestroOscuro

MaestroOscuro
Tue Jan 25 02:27:03 CST 2005

Unless you want to code everything, you may use Dock or Anchor properties.

The best way is creating Frames, where you'll place the controls, and
changing the Dock property of the frames.

If Docking does not work (if you are using OWC or anything like this,
standard complex components...) place the control and use the Anchor property
to {Top, Bottom, Left, Right}. It will set your control size "relative" to
the container size.

CU

Re: Interface design by Chris

Chris
Tue Jan 25 09:10:41 CST 2005

In addition, always design to the smallest screen resolution to make
sure eveything fits.
You probably already knew this, but I thought I'd mention it.

Chris


RE: Interface design by gary7584

gary7584
Tue Jan 25 10:59:04 CST 2005

Thank you very much!

"MaestroOscuro" wrote:

> Unless you want to code everything, you may use Dock or Anchor properties.
>
> The best way is creating Frames, where you'll place the controls, and
> changing the Dock property of the frames.
>
> If Docking does not work (if you are using OWC or anything like this,
> standard complex components...) place the control and use the Anchor property
> to {Top, Bottom, Left, Right}. It will set your control size "relative" to
> the container size.
>
> CU

Re: Interface design by Rob

Rob
Tue Jan 25 16:07:33 CST 2005

Very true. But if, like me, you have *ONE* user who insists on using
800x600 even though he's been bought the best screen money can buy, then do
you think it's justifiable to kill them?


"Chris Dunaway" <dunawayc@gmail.com> wrote in message
news:1106665841.521556.132380@f14g2000cwb.googlegroups.com...
> In addition, always design to the smallest screen resolution to make
> sure eveything fits.
> You probably already knew this, but I thought I'd mention it.
>
> Chris
>



Re: Interface design by Chris

Chris
Wed Jan 26 09:13:01 CST 2005

At least it's not 640x480 :-(


Re: Interface design by Rob

Rob
Wed Jan 26 16:09:08 CST 2005

True. I didn't think there was any need to ask whether it was justifiable
for that guy.