: 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:
: : 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,