|
-
Aug 8th, 2000, 08:37 PM
#1
Thread Starter
Addicted Member
How do you close a window that you've opened with the tag Form2.show using a button??? As you can see I'm a newbie...
-
Aug 8th, 2000, 09:09 PM
#2
Frenzied Member
Code:
Private Sub Command1_Click()
Unload Form2
End Sub
-
Aug 8th, 2000, 09:31 PM
#3
Thread Starter
Addicted Member
Thanks for the fast reply...It works great.
-
Aug 8th, 2000, 10:25 PM
#4
Good Ol' Platypus
There's another way, <font color="#00007F">If</font> you<font color="#007F00">'re interested....
</font>
<font color="#00007F">Declare</font> the API call (<font color="#00007F">In</font> API viewer, find the function CloseWindow) CloseWindow. <font color="#00007F">Then</font> run this:
[code]
<font color="#00007F">Private</font> <font color="#00007F">Sub</font> Command1_Click()
CloseWindow Form2.hWnd
<font color="#00007F">End</font> <font color="#00007F">Sub</font>
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Aug 8th, 2000, 10:27 PM
#5
Good Ol' Platypus
Sorry, the server must have screwed when I posted last time, it looks really bad .
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Aug 8th, 2000, 11:31 PM
#6
Thread Starter
Addicted Member
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
|