Hi, I don't understand your ask but if you want maximised/minimised you can use the Door library with the "WindowState" propriete:
obj.FromControl("Form1")
obj.SetPropriete("WindowState",1/2)
'obj is a "Object" object from Door.dll
'1=Minimized
'2=Maximized
But I think that it's an other question... Tell me if it's not the waited answer