Windows Develop Bookmark and Share   
 index > Windows Forms General > Forms to fit monitors with different screen resolution
 

Forms to fit monitors with different screen resolution

Hi,

I am developing a windows application in C# .net. There are totally 15 forms. My PC's resolution is 800 X 600 & I have designed few forms. Other forms were designed by my colleague whose PC's resolution is 1024 X 768.

When I integrated all the forms and run it in my machine the forms designed by him does not fit in my machine & it looks ugly(Doesnot fit my screen). I want all the forms designed by him to fit my screen resolution.

I have set theForm's windowstate to MAXIMISED & tried to solve the issue, however I was not ableto fix it.

I have seen so many topics related tomy question, however I did not get a clear picture. It woud be great if someone help me out in fixing thisissue.


Regards,
Karthikeyan

Karthizen  Friday, February 20, 2009 8:14 PM
Always design a form for the smallest resolution you'll use. You can always scale up, you can't scale down. Tell your colleague to design them for 800x600, and use the Anchor properties to let controls resize themselves (Default anchor is top left, if you anchor both directions (up and down, or left and right) it will resize on that axis when the form is resized).
ScottyDoesKnow  Friday, February 20, 2009 9:29 PM
http://msdn.microsoft.com/en-us/library/ms229605(VS.80).aspx
Lucian Baciu, http://studentclub.ro/lucians_weblog
  • Proposed As Answer byLucian Baciu Saturday, February 21, 2009 7:15 AM
  •  
Lucian Baciu  Friday, February 20, 2009 9:06 PM
Always design a form for the smallest resolution you'll use. You can always scale up, you can't scale down. Tell your colleague to design them for 800x600, and use the Anchor properties to let controls resize themselves (Default anchor is top left, if you anchor both directions (up and down, or left and right) it will resize on that axis when the form is resized).
ScottyDoesKnow  Friday, February 20, 2009 9:29 PM
To answer a question before it comes, because you'll probably run into this: if you want two side-by-side controls to resize horizontally, you can't just anchor them both to left and right. If you do, they'll each resize to keep the same distance from each side and overlap. To fix this put them in a TableLayoutPanel and then anchor that to both sides.
ScottyDoesKnow  Friday, February 20, 2009 9:40 PM
Thanks a lot Scott for your valuable replies. I advised him to design the forms as you said.

Thanks again.
Karthizen  Friday, February 20, 2009 10:44 PM

You can use google to search for other answers

Custom Search

More Threads

• VB.NET - prevent bad user input
• Auto Resizing
• image.fromfile
• Change the language of a form instantly?
• BUG: MonthCalendar, anyway to stop it from updating itself?
• Want an Form event like Form1_Loaded not Form1_Load
• software cracking/hacking
• problem with Configuration files and windows services
• VB at the movies - great for Newbies (good anyway)
• Property Grid + CustomTypeConverter Question