|
|
Title | Programmatically activate an MDI child form |
Description | |
Keywords | MDI, child form, activate, MDIForm |
Categories | Tips and Tricks |
|
|
Use the SendMessage API function to send the MDI form a WM_COMMAND message with lParam = 0 and wParam = 32768 plus the number of the form to activate.
|
|
Private Sub cmdSelectForm_Click(Index As Integer)
SendMessage MDIForm1.hwnd, WM_COMMAND, _
32768 + Index, 0
End Sub
|
|
|
|
|
|