Notifications
Clear all

[Closed] dotnet forms

How do I prevent the scaling of a maxform dotnetwindow ? Currently if I accidently expand my form it tiles , which is not what I want.

1 Reply

Hope it help…


try (frm.close()) catch()
frm = dotNetObject "form"
frm.FormBorderStyle = frm.FormBorderStyle.FixedSingle

--or you could use 
--frm.MaximumSize = dotNetObject "System.Drawing.Size" 300 300 -- to lock the form size
--frm.MinimumSize = dotNetObject "System.Drawing.Size" 300 300 -- to lock the form size
-- to replace frm.FormBorderStyle 
frm.topmost=true 
showProperties frm
frm.show()

try to play with this prop


frm.MaximizeBox = false;
frm.MinimizeBox = false;