LOCAL loForm loForm = Createobject("oForm") loForm.Show IF type('version(5)') = 'U' or version(5)/100 < 7 SET library to home()+'foxtools.fll' loForm.nHwnd = _WhToHwnd(_WGetPort()) SET library to ELSE loForm.nHwnd = loForm.hWnd ENDIF READ Events DEFINE Class oForm As Form nHwnd = 0 TitleBar = 0 Width = 750 Height = 400 nHwnd = 0 ADD Object myTitle As Label ; with BackColor = Rgb(0,255,255), ; ForeColor = Rgb(255,0,0),; Caption = "I'm your form title", ; height = 25, Width = 750,; FontSize = 14, Alignment = 1 ADD Object myExit As CommandButton With ; Caption = 'x', FontName='Wingdings',; Height = 25, Width = 27, Left = 0 PROCEDURE Init() DECLARE ReleaseCapture In win32API DECLARE Integer SendMessage In win32API ; integer HWnd, Integer wMsg, ; integer wParam, Integer Lparam ENDPROC PROCEDURE myTitle.MouseMove LPARAMETERS nButton, nShift, nXCoord, nYCoord ReleaseCapture() IF nButton = 1 SendMessage(Thisform.nHwnd, 0x112, 0xF012, 0x0) ENDIF ENDPROC PROCEDURE myExit.Click Clear Events thisform.Release ENDPROC ENDDEFINEPS: Though this is doable IMHO do not play with windows standards.