VB.NET

Moderators: seancampbell
Number of threads: 4020
Number of posts: 10026

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
load and unload dialogs Posted by warpminded on 14 Nov 2004 at 4:46 AM
i know this is a simple task but for some reason it has not worked for me. The Load and Unload function should work in VB.net?
I know the Me.Hide function will work, but why wont the Load and Unload functions work?
I am new at this and i am trying to open and close new dialog boxes.
What am i doing wrong?


Report
Re: load and unload dialogs Posted by Relman on 14 Nov 2004 at 8:28 AM
: i know this is a simple task but for some reason it has not worked for me. The Load and Unload function should work in VB.net?
: I know the Me.Hide function will work, but why wont the Load and Unload functions work?
: I am new at this and i am trying to open and close new dialog boxes.
: What am i doing wrong?
:
:
:
AFAIK, VB.NET doesn't use load and unload. If you want to load a form, Declare and show it:
Dim MyFrm As New Form1
MyFrm.Show

If you you want to "Unload" a form then call:
MyForm.Close


Akiva Kraines
Report
Re: load and unload dialogs Posted by DenKain on 14 Nov 2004 at 8:58 AM
This message was edited by DenKain at 2004-11-14 9:0:0

: : i know this is a simple task but for some reason it has not worked for me. The Load and Unload function should work in VB.net?
: : I know the Me.Hide function will work, but why wont the Load and Unload functions work?
: : I am new at this and i am trying to open and close new dialog boxes.
: : What am i doing wrong?
: :
: :
: :
: AFAIK, VB.NET doesn't use load and unload. If you want to load a form, Declare and show it:
:
Dim MyFrm As New Form1
: MyFrm.Show

: If you you want to "Unload" a form then call:
MyForm.Close

:
: Akiva Kraines
:
Okay I'm kinda new at this but I have been wondering how to open another form you know like an about box. I tried the above code in a button but it automaticly opened a "New" form anyway not the one I thought I declaired.....*sigh*
:
: DenKain
:
Report
Re: load and unload dialogs Posted by Relman on 14 Nov 2004 at 10:48 AM
: This message was edited by DenKain at 2004-11-14 9:0:0

: : : i know this is a simple task but for some reason it has not worked for me. The Load and Unload function should work in VB.net?
: : : I know the Me.Hide function will work, but why wont the Load and Unload functions work?
: : : I am new at this and i am trying to open and close new dialog boxes.
: : : What am i doing wrong?
: : :
: : :
: : :
: : AFAIK, VB.NET doesn't use load and unload. If you want to load a form, Declare and show it:
: :
Dim MyFrm As New Form1
: : MyFrm.Show

: : If you you want to "Unload" a form then call:
MyForm.Close

: :
: : Akiva Kraines
: :
: Okay I'm kinda new at this but I have been wondering how to open another form you know like an about box. I tried the above code in a button but it automaticly opened a "New" form anyway not the one I thought I declaired.....*sigh*
: :
: : DenKain
: :
:

In the above code, I created a new form of Class "Form1". Which means that the name of the form (which is a class) that I designed in my editor was Form1. Change Form1 to the name of your About form (which is that name of the class that you want to instantiate an object of) and it should work.

The reason that I am continually mentioning classes is that B.NET is completely object orientated.

I hope that clarified and solved your problem,

Akiva Kraines
Report
Re: load and unload dialogs Posted by warpminded on 14 Nov 2004 at 10:02 AM
: : i know this is a simple task but for some reason it has not worked for me. The Load and Unload function should work in VB.net?
: : I know the Me.Hide function will work, but why wont the Load and Unload functions work?
: : I am new at this and i am trying to open and close new dialog boxes.
: : What am i doing wrong?
: :
: :
: :
: AFAIK, VB.NET doesn't use load and unload. If you want to load a form, Declare and show it:
:
Dim MyFrm As New Form1
: MyFrm.Show

: If you you want to "Unload" a form then call:
MyForm.Close

:
: Akiva Kraines
:

thanks i knew it was a simple thing



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.