Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello, I'm a newbie at these forums, and at VB.NET programming. How do you close an open window? I have tried varForm.Visible = False and varForm = Nothing, etc, but all it does is put it behind another form.

 

Help!

 

Thanks,

 

-compugeek

  • *Experts*
Posted

If you Dispose() of the form, then its resources are freed and you

can't open it again without reinitailizing the variable. Close() is

the best way to close the form.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Posted (edited)
Yes, that makes sense VolteFace because I would usually get object reference not set to an instance if I used Dispose for a Form. So, consequently I use Close instead. Edited by aewarnick
C#

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...