| VB5, VB6 The main MDIForm in the example project is a container for each of the example forms. Each example form has its MDIChild property set to True. Option Explicit Private Sub mnuExit_Click() End End Sub Private Sub mnuTextControls_Click() frmText.Show frmText.SetFocus End Sub Private Sub mnuSelectionControls_Click() frmSelection.Show frmSelection.SetFocus End Sub Private Sub mnuComboListControls_Click() frmComboList.Show frmComboList.SetFocus End Sub Private Sub mnuFileControls_Click() frmFile.Show frmFile.SetFocus End Sub Private Sub mnuPictureControls_Click() frmPicture.Show frmPicture.SetFocus End Sub Private Sub mnuUndo_Click() 'if control with focus is a TextBox, 'then Undo. On Error Resume Next 'if form has no controls If TypeOf Screen.ActiveControl Is TextBox Then Retn = Undo(Screen.ActiveControl) End If End Sub |
Main MDIForm Contains Each Example |
Express News India | Freelance ecommerce web development India