Results 1 to 3 of 3

Thread: Winforms design

  1. #1

    Thread Starter
    PowerPoster motil's Avatar
    Join Date
    Apr 2009
    Location
    Tel Aviv, Israel
    Posts
    2,143

    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...
    * Rate It If you Like it

    __________________________________________________________________________________________

    "Programming is like sex: one mistake and you’re providing support for a lifetime."

    Get last SQL insert ID

  2. #2
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    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.
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width