c# - Width of the form can not be less than 140 pixels. Why? -


i created default windows forms application project in visual studio 2012. when run program saw width of form can not less 140 pixels. why? , how overcome strange restriction?

users wouldn't able use window's minimize, maximize, , close buttons @ top. don't believe can change behaviour sizable formborderstyle. it's usability thing.

if remove border, setting none example, can set whatever want programmatically doing:

form.width = [...]; 

you can resize further forms border types: none, fixedtoolwindow, , sizabletoolwindow. toolwindows won't let go below amount well, none let above 2px. set value below that, without getting exception, won't anything.


Comments

Popular posts from this blog

design - Custom Styling Qt Quick Controls -

Unable to remove the www from url on https using .htaccess -