What are you trying to accomplish exactly?? Please give some details of what you are trying to do. Maybe there is another solution we can assist you with if you have already determined you can't set the window size any smaller.
=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)
Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
VB/Access Programmer
I'm trying to get someone to confirm that 123 is the minimum width. There are plenty of other solutions, I'm just puzzled as to if and why there is a minimum and why I can't find it documented anywhere.
There could be. There is a max width for some windows/forms and that is not documented either. Really a form any smaller should just be minimized so that could be why.
Sorwen hit my point on the head. I can not even imaging why you would need or want a form that small....at that point it really isn't a form so much as it really can't be much useful for anything.
While not documented as you say, I would expect the 123 minimum probably has something to do with inherent border width and more likely something to do with the control box control.
Try setting the ControlBox Property to False. The ControlBox include space for the Form Icon property, the Form Text property, and the Form's Minimum and Maxmimum controls and the Red X (Close icon). Perhaps that is what is reserving the 123 minimum size but maybe not.
=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)
Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
VB/Access Programmer
I'm creating a popup list that contains a one column datagridview, a width of around 100 is ideal.
I have disabled the min max and menus and still get the same limitation. I'm puzzled why I can go smaller than the 123 limit when the border style is set to ToolWindow and not in the other styles.
Setting the Control box to none doesn't change the width limitation but it does give me the borderless look I was looking for with the ToolWindow.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.