Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is There A Minimum Form Width?

Status
Not open for further replies.

Kliot

Programmer
Jan 10, 2003
622
US
I'm trying to create a narrow windows form but I can't make the width any smaller than 123. Is this a limit? I can't find it documented anywhere.

Thanks
 
Try changing the Form border style to fixed tool window or none.

________________________________________________________
Zameer Abdulla
Help to find Missing people
 
I have the border style set to none and I can't make the form width less than 123.

If I set the style to fixed tool window I can make it smaller but I want the border style to be none.
 
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
 
Robert,

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.

Perrin
 
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.

-I hate Microsoft!
-Forever and always forward.
 
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. [smile]

=======================================
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
 
Did you hide the system menu, and the min/max/close buttons from the form's header?

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top