Yan #1 You can get the device context using something like this...Import Pub.Win32 Extern "win32" Function GetActiveWindow() End Extern Graphics 800, 600, 0 hWnd:Int = GetActiveWindow() hDC:Int = GetDC(hWnd)