Visual Basic > Forms
How to hide, show, minimize MDI child forms.
How to hide, show, minimize MDI child forms. 'Note: This has only been tested with VB 3 and VB 4-16, if you convert ' Here's how to hide/show/minimize/...etc. MDI children ' Declare API and Constants Declare Function ShowWindow% Lib "User" (ByVal hWnd%, ByVal nCmdShow%) Global Const SW_HIDE = 0 Global Const SW_SHOWNORMAL = 1 Global Const SW_SHOWMINIMIZED = 2 Global Const SW_SHOWMAXIMIZED = 3 Global Const SW_SHOWNOACTIVE = 4 Global Const SW_SHOW = 5 Global Const SW_MINIMIZE = 6 Global Const SW_SHOWMINNOACTIVE = 7 Global Const SW_SHOWNA = 8 Global Const SW_RESTORE = 9 ' Examples: Dim Re% ' Hide the child form Re% = ShowWindow(frmMDIChild.hWnd, SW_HIDE) ' Show the child form Re% = ShowWindow(frmMDIChild.hWnd, SW_SHOW) ' Minimize the child form Re% = ShowWindow(frmMDIChild.hWnd, SW_MINIMIZE)
Visual Basic Codes
ActiveX
Miscellaneous
Applications
Code Snippets
Common Dialogs
Special Effects
Database Stuff
Date Time
Files Drives
Forms
Graphics Games
Internet Stuff
Multimedia
Other
Strings
Windows