Notifications
Clear all

[Closed] DotNet form with Width = 50. Is it possible?

Why I can’t create dotnet form with width = 50?
Is there are some limitations of width property? I can’t set it below ~130.
Win8 + Max 2014

form=dotNetObject "form"
form.MaximiZeBox = false
form.MinimizeBox = false
form.bounds=dotNetObject "system.drawing.rectangle" 110 110 50 215
form.show()
2 Replies
1 Reply
(@gazybara)
Joined: 11 months ago

Posts: 0

Hey Kostadin,
try this concept


 	if form != undefined do try(form.close())catch()
 	fn maxHW = (dotNetObject "maxCustomControls.win32HandleWrapper" (dotNetObject "System.IntPtr" (windows.getMaxHWND())))
 	global form = dotNetObject "form"
 	form.ShowInTaskbar = off
 	form.FormBorderStyle = form.FormBorderStyle.SizableToolWindow
 	form.StartPosition = form.StartPosition.Manual
 	form.bounds = dotNetObject "system.drawing.rectangle" 110 110 50 215
 	form.show(maxHW())
 

Thanks Branko. It works.