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... :(
Printable View
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... :(
Code:Private Sub Command1_Click()
Unload Form2
End Sub
Thanks for the fast reply...It works great.
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>
Sorry, the server must have screwed when I posted last time, it looks really bad :(.
Its okay, thanx too!