CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2002
    Posts
    2

    LayoutManagers in C# ?

    Hi!

    I´m writing this windowsApplication. My problem is that don´t understand have to make it fitt to different resolutions. In Java I use layoutManagers but in C# I really don´t know. What I do know is that there are no such things as laymanagers in C#. Are you supposed to use Dock and Anchor? If so, how do you use it? I would be must thankful if someone could point me to on an article explaing this isue.

    Take Care

    Thomas Anderssson
    Thomas Andersson

  2. #2
    Join Date
    Jul 2002
    Location
    .NET 2.0/.NET 3.0/.NET 3.5 VS2005/VS2008
    Posts
    284
    you can use dockpadding properties and docking properties to make your layout adaptive to your screen resolution. This method of making a layout works fine for me. Also try to use panels for controls that don't need to resize when your window is bigger or smaller.

    Good luck
    WM.

    What about weapons of mass construction?

  3. #3
    Join Date
    Jul 2002
    Posts
    2,543

  4. #4
    Join Date
    Dec 2002
    Posts
    1
    Have a look at http://sourceforge.net/projects/dotnetlayout/

    We're adding java-awt Layout Managers to .NET

    Regards
    Olaf

  5. #5
    Join Date
    Apr 2003
    Posts
    2
    I've used a layout manager provided by ActiveWare with great success. You may want to check it out at www.activewaresolutions.com.

  6. #6
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    FYI , it effects on Cost of the product ! right. we can design our programs to encorporate all that stuffs.


    Paresh
    - Software Architect

  7. #7
    Join Date
    Apr 2003
    Posts
    2
    Hi Paresh,

    I'm not sure what you mean by "it effects on cost of the product" but I did want to respond to your comment "we can design our programs to incorporate all that stuff".

    Sure, I agree, anyone can write a program to incorporate "all that stuff". If somebody wrote the tool, somebody else could certainly write code to do the same thing.

    I actually set out to write my own layout manager and quickly realized that in order to get all the functionality I wanted, it was a bigger task than I was interested in taking on. I was much happier spending the money to buy a solution that already did what I needed and so I did.

    I'm sure there will be other times when I set out to write my own classes or controls. In fact, I'll probably hit some obstacles and post questions to message boards. And I hope that when I do, great people, such as yourself, will be willing to give me any information they have on the topic such as SW knowledge to try and help me out as well as product knowledge of other tools out there that may help me out. I like to carefully consider all of my options.

    Best Regards,
    foxms1

  8. #8
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    i agree here. yes there is a Trade-Off btw money and work
    - Software Architect

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

Featured