lnHwnd = FindWindow( .null., "Untitled - Notepad" ) if ( lnHwnd > 0 ) SetWindowPos( lnHwnd, 0, -50, -50, int( sysmetric( 1 ) * 1.5 ), int( sysmetric(2) * 1.5 ), 0 ) endifIt does seem to clip the size, but I think that might be notepad that is doing the constraining. Because VFP will let you resize it's window way out of bounds of reality:
lnHwnd = FindWindow( .null., "Microsoft Visual FoxPro" ) if ( lnHwnd > 0 ) SetWindowPos( lnHwnd, 0, -50, -50, int( sysmetric( 1 ) * 1.5 ), int( sysmetric(2) * 1.5 ), 0 ) endif ? _screen.height ? _screen.Width>Tried your code, but I still can't get the window to be larger than the desktop.