Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleProgrammatically activate an MDI child form
Description
KeywordsMDI, child form, activate, MDIForm
CategoriesTips 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
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated