thisform.text1.setfocus && Assigns the focus to a control. thisform.windowstate=2 && or set at design timethis works as well
thisform.windowstate=2 && or set at design time thisform.text1.setfocusthe form dont maximize and set the focus to the control !
form.init thisform.windowstate=2 && or set at design time form.activate thisform.text1.setfocus