Windows Form Sizing

This is a discussion on Windows Form Sizing within the C# Programming forums, part of the General Programming Boards category; HI I am trying to create a form with a small width ( about 64). i have removed the formcontrols ...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    85

    Windows Form Sizing

    HI
    I am trying to create a form with a small width ( about 64). i have removed the formcontrols and made the maximize and minimize boxs false. the form has a fixedsingle borderstyle.

    my problem is i cannot size the width of the form down below a certain size.

    is there anyway to overcome this?

    i am trying to use it as a sort of toolbar to display some small thumbnail images, which will later be dragged and dropped onto other forms.

    Is this the right approach or should i be using another type of control/form

    thanks in advance

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Set the formborderstyle to "none". Of course you'll lose the actual border, but I guess that's your intention anyway.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Registered User
    Join Date
    Oct 2008
    Posts
    85
    thanks for the reply

    i have tried removing the border, the form still will not size down below what appears to be a default minimum.

    i can make it smaller in the IDE but not at run time - it just goes back to the size it was normally, even if i programatically override the height and width and run time.

    the smallest size i can resize to on the mdiparent appears to be the exact hight height and width of the control buttons that i have removed.

    hopefully someone will come up with a solution or alternative method.
    [EDIT]

    i found this link but unfortunelty its not C# orientated and appears a little bit above my understanding at present.

    http://delphi.about.com/od/adptips20...m_minwidth.htm

    anyone can take a look and maybe turn into something i can undertsand ? or is this really going to far now.
    Last edited by deviousdexter; 10-22-2008 at 05:23 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows Forms
    By ejohns85 in forum C# Programming
    Replies: 2
    Last Post: 05-17-2007, 03:22 PM
  2. how to make a windows application
    By crvenkapa in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2007, 09:59 AM
  3. Script errors - bool unrecognized and struct issues
    By ulillillia in forum Windows Programming
    Replies: 10
    Last Post: 12-18-2006, 03:44 AM
  4. Accessing main form from functions in other classes
    By pj_martins in forum C++ Programming
    Replies: 1
    Last Post: 11-05-2004, 08:27 AM
  5. My UserControls dissapear off my form
    By zMan in forum C# Programming
    Replies: 2
    Last Post: 09-15-2004, 08:55 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21