How do i show a window? what function do i use.
Printable View
How do i show a window? what function do i use.
windowname.show
example:
form2.show
If you want to show a window that your app doesn't own, use the ShowWindow API function
That should work.Code:Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Const SW_SHOW = 5
Sub Command1_click()
result = ShowWindow(WindowToShow.hWnd, SW_SHOW)
End Sub