| Share this post! | Vote this! |
|
These tips and tricks were submitted by professional developers using Visual Basic 3.0 through 6.0, Visual Basic for Applications (VBA), and Visual Basic Script (VBS). The editors at Visual Basic Programmer’s Journal compiled the tips.
SAMPLE ONE
Close All MDI Children Simply
This code allows you to close all the MDI child forms in an MDI form at once. First, create a menu item in the MDI form, then paste in this code:
Private Sub mnuCloseAll_Click()
Screen.MousePointer = vbHourglass
Do While Not (Me.ActiveForm Is Nothing)
Unload Me.ActiveForm
Loop
Screen.MousePointer = vbDefault
End Sub
Once the user clicks on that menu item, the MDI child forms will close.
More...
SAMPLE ONE
Close All MDI Children Simply
This code allows you to close all the MDI child forms in an MDI form at once. First, create a menu item in the MDI form, then paste in this code:
Private Sub mnuCloseAll_Click()
Screen.MousePointer = vbHourglass
Do While Not (Me.ActiveForm Is Nothing)
Unload Me.ActiveForm
Loop
Screen.MousePointer = vbDefault
End Sub
Once the user clicks on that menu item, the MDI child forms will close.
More...



0 comments:
Post a Comment