Click here to Skip to main content
15,911,139 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have written an application. It works fine on some resolutions but most of the controls are over lapped when it is run on some other computers.
Is there any way of setting the application automatically when it is run on different computers?

Thanks
Furqan
Posted

If you are using windows forms then you will need to play with the docking and anchoring properties of the controls on the form so that your form can resize to different resolutions intelligently.
 
Share this answer
 
v2
Comments
Furqan Sehgal 1-Jul-11 11:48am    
Yes marcus, I am using windows forms. Could you give me a hint how to fix this?
Manfred Rudolf Bihy 1-Jul-11 12:03pm    
I thought Markus already did give you a hint. Read his solution again I highlighted the relevant bits with emboldened text.

Cheers!
Manfred Rudolf Bihy 1-Jul-11 12:04pm    
Have 5!
Good advice.
Sergey Alexandrovich Kryukov 2-Jul-11 18:34pm    
There is more to it. I voted only 4 because anchoring is best avoided: it required manual alignment or calculation (unlike padding and margins) and tends to cause flicker.

Please see my answer.
--SA
fjdiewornncalwe 4-Jul-11 11:12am    
I agree that the anchor shouldn't be used, but my philosophy is that if the developer doesn't yet have the knowledge to do it manually, then anchor is at least better than nothing. Cheers.
Look corresponding MSDN article here and forum discussion here.
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 2-Jul-11 18:32pm    
I voted 4. Anchor is best avoided in favor of docking. Anchor still include manual layout and tends to flicker. Second link gives page load error.

Please see my answer.
--SA
I've already give an answer based on same question in CP.
take a look there-CP Answer[^] at my CP answer
 
Share this answer
 
Sure. Please see my recommendations in my past answers:
Zom Out malfunctions when Screen resolution changes[^].

See also some recommendations on general UI design:
Zom Out malfunctions when Screen resolution changes[^].

Here you will find my code sample with Docking with Forms (which is an important design technique for resolution tolerance):
how to dock button so that it can adjust with the form[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900