Forms and Screen Size

G

Guest

I have a form on which I have two controls, one docked to the left and the
other docked to the right in a window that is Maximized. I developed the
application on one computer which has a screen size of 1024 x 768. When I
run it on the other with 800 x 640, the right control doesn't resize to the
window maximized size but instead retains it's original size as per the IDE
with the 1024 x 768 screen.

How do I make it dock with "Fill" to only fill the rest of the window, no
matter what the window size?
 
C

Cor Ligthert

Dennis,

My expirience is that I should use panels for the docking and than the
anchors for the controls setting in that.

I hope this helps?

Cor
 
H

Herfried K. Wagner [MVP]

Dennis said:
I have a form on which I have two controls, one docked to the left and the
other docked to the right in a window that is Maximized. I developed the
application on one computer which has a screen size of 1024 x 768. When I
run it on the other with 800 x 640, the right control doesn't resize to
the
window maximized size but instead retains it's original size as per the
IDE
with the 1024 x 768 screen.

If the form is resizable, it should be easy to simulate this situation even
on higher screen resolutions by resizing the form. Controls docked to a
certain edge should appear docked even when running the app on a system with
a smaller screen resolution.
 

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

Top