Maintaining Parent Form Integrity

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

What am I missing form this method that will prevent access to the parent
form when the frmB is active? If you run this method, you can still access
the parent form and its functionality.

Sub WhatEver
Dim frmB As New Form '-- The New Form to display
frmB.TopMost = True
frmB.Owner = CType(Parent, Form)
frmB.Show()
End Sub

As always - Thanks for replys...
Joseph
 
Joseph,

You can either hide the parent form, or use the ShowDialog method instead of
Show to make frmB modal.
 
Back
Top