Joke Collection Website - Public benefit messages - Vb language, knowing the handle of a form, how to activate the current form through the handle and send information to him? Ask god for advice.

Vb language, knowing the handle of a form, how to activate the current form through the handle and send information to him? Ask god for advice.

Just use the ShowWindow api to send the show property to the handle. For example, this HWND is the handle.

Display window (HWND, SW_SHOW)

Of course, you must declare it before using it.

Private declaration function show windowlib "user 32" (as long as byval hwnd and as long as ByVal nCmdShow)

You usually need to declare this when you get the handle. It depends on your needs. If it has been declared, just call it directly.