Notifications
Clear all

[Closed] minimum form size

Hi

Is posible to set a form size to 40×40 (with hidden controlbox) ?

works:
form = dotnetobject “form”
form.StartPosition = form.StartPosition.Manual
form.Bounds = dotnetObject “Drawing.Rectangle” 200 100 40 40
form.show()

dont works:
form = dotnetobject “form”
form.ControlBox = false –hide main bar
form.StartPosition = form.StartPosition.Manual
form.Bounds = dotnetObject “Drawing.Rectangle” 200 100 40 40
form.show()

1 Reply

oki found it

must change bordersytyle = none to disable min size limitations

form.FormBorderStyle = form.FormBorderStyle.none