-
Winforms design
Hello all.
I'm coming from ASP.NET background and lately I started developing winforms applications for my company, I had no problem with the move from ASP to winforms programing wise, the only thing i have problem with is to my program to look good across different screen resolutions, resolutions is big problem when developing for the web as well, but I already learned and know how to handle those problems and make my website to look good under almost any resolution
what I'm really asking, can someone experienced in this area tell me what are the rules and guidelines i should follow and obey for my winforms application will look good in most resolutions .... any advices, tutorials and even books will be most appreciated.
P.S: I know about anchors and Dock property my guess it still not enough...
-
Re: Winforms design
Anchors and docking is about all you need when it comes to programming a WinForm app for different resolutions. You sometimes need to take into account AutoScroll for specific components, sizing others, etc.
But really, it comes down to what you're making, the audience you're targeting, and the platforms you're targeting.
Without knowing specifics, I don't think there's much assistance we can be. How you build the UI will determine what you need to focus on.
-
Re: Winforms design
Anchor and Dock on their own may not be enough for a complex layout. Sometimes you may need to incorporate one or more TableLayoutPanels or FlowLayoutPanels. In conjunction with Anchor and Dock, these can make a Windows Form behave much like a web page when resizing. Follow the CodeBank link in my signature and check out my thread on Anchor & Dock, which includes an example that uses a TableLayoutPanel.