Get hWnd of the current window/form in VB6?

C. Ross picture C. Ross · Feb 15, 2010 · Viewed 20.5k times · Source

Ho do I get hWnd of the current window/form in VB6?

Answer

C-Pound Guru picture C-Pound Guru · Feb 15, 2010

If you're on the form: Me.hWnd. If you don't know which form is the current form: Screen.ActiveForm.hWnd