Interface design

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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
 
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
 
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?
 
True. I didn't think there was any need to ask whether it was justifiable
for that guy.
 
Back
Top