-
How can I make it so that one form unloads and the next one is shown, the next one opens at the same spot that the user left the last one? I'd like my file open common dialog box to do the same.
mikeycorn
-
Where you are showing the new form, and unloading the old one.
Code:
frmNew.Show
frmNew.Top = frmOld.Top
frmNew.Left = frmOld.Left
Unload frmOld
-
Place your code in the Unload event of the Form.
Code:
Private Sub Form_Unload(Cancel As Integer)
Form2.Left = Me.Left
Form2.Top = Me.Top
Form2.Show
End Sub
-
Excellent!!! Hey, by the way, what 's the difference between "Load frmQuizBackground" & "frmQuizBackground.Show"?
mikeycorn
-
Load frmQuizBackground will only trigger the Load event of the Form. Show frmQuizBackground does the actual showing of the Form.