|
-
Jul 4th, 2000, 12:05 PM
#1
Thread Starter
Fanatic Member
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
-
Jul 4th, 2000, 12:09 PM
#2
Fanatic Member
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
Iain, thats with an i by the way!
-
Jul 4th, 2000, 12:10 PM
#3
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
-
Jul 4th, 2000, 12:27 PM
#4
Thread Starter
Fanatic Member
Excellent!!! Hey, by the way, what 's the difference between "Load frmQuizBackground" & "frmQuizBackground.Show"?
mikeycorn
-
Jul 4th, 2000, 12:31 PM
#5
Load frmQuizBackground will only trigger the Load event of the Form. Show frmQuizBackground does the actual showing of the Form.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|