PDA

View Full Version : minimum form size


MerlinEl
12-02-2009, 10:07 AM
Hi

Is posible to set a form size to 40x40 (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()

MerlinEl
12-02-2009, 11:26 AM
oki found it

must change bordersytyle = none to disable min size limitations

form.FormBorderStyle = form.FormBorderStyle.none

CGTalk Moderation
12-02-2009, 11:26 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.