Home > Archive > MSDN > March 2004 > How to close a form
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to close a form
|
|
| angiede 2004-03-30, 12:31 pm |
| I'm really new to VB and I'm stuck. I've creating a message box that I execute from a command line procedure and I've included an OK button. When the user clicks it - I want it to close, but I can't figure out how to make it close.
Please help!
Thanks.
| |
|
|
If understand correctly, you have a form that you are using like it was
a message box, correct?
If so, then just goto the Ok button's click event and put this code
in there:
unload me
Then goto the form's unload event and put this in there:
set form1 = nothing
where form1 is the name of your form.
Also, if I may make a suggestion, there is a group in the MS news
server called microsoft.public.vb.general.discussion, among others
that can answer your vb question much better.
Good luck!
Saga
"angiede" <anonymous@discussions.microsoft.com> wrote in message
news:33B9B4B8-9C1A-4999-B1C8-A52E4815B2A6@microsoft.com...
> I'm really new to VB and I'm stuck. I've creating a message box that I
execute from a command line procedure and I've included an OK button. When
the user clicks it - I want it to close, but I can't figure out how to make
it close.
>
> Please help!
> Thanks.
| |
| angiede 2004-03-31, 4:31 pm |
| Thank you!! That worked great!!
|
|
|
|
|