• Welcome to Valhalla Legends Archive.
 

VB: Close, not Exit!! (Solved)

Started by Antichrist, August 26, 2004, 07:26 PM

Previous topic - Next topic

Antichrist

Now that my menu/opening another window problem is solved.. I just realized I need to make the code for the "Cancel" button for such windows as the Userlist and Configuration windows. Hm.. I had some code that I tried that had no effect, yet it had no errors in it, I must of deleted it because I can't find it. The code probably was actual code, just didn't do what I thought it would do. What I want it to do is just close that ONE window. I thought 'End' would work, but I was wrong because that closed the entire bot.. Lol.

Thanks.


hismajesty


Banana fanna fo fanna


Antichrist

#3
Thanks hismajesty, I used your code:


Me.Close


I'm sure your code would have done the same $torm, but Me.Close is one line :-P not two. :-D So I thank you aswell... and who knows, your code might help for something else I do.

MyndFyre

Quote from: Antichrist on August 30, 2004, 03:40 PM
Thanks hismajesty, I used your code:


Me.Close


I'm sure your code would have done the same $torm, but Me.Close is one line :-P not two. :-D So I thank you aswell... and who knows, your code might help for something else I do.

No, $t0rm's code would not have done the same thing.  Me.Close() disposes the object so you can't access it again through the same instance reference, whereas Me.Hide() --OR-- Me.Visible = false (they are TWO one-line examples of the SAME thing) just makes the window invisible, but you can still access it through the same instance reference.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

hismajesty

He asked to close it - not hide it, though. :P

MyndFyre

Quote from: hismajesty[yL] on August 30, 2004, 06:02 PM
He asked to close it - not hide it, though. :P

Well then $t0rm's methods wouldn't have worked.  I was illustrating the difference between what YOU said and what $t0rm said.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

hismajesty

Quote from: MyndFyre on August 30, 2004, 06:05 PM
Quote from: hismajesty[yL] on August 30, 2004, 06:02 PM
He asked to close it - not hide it, though. :P

Well then $t0rm's methods wouldn't have worked.  I was illustrating the difference between what YOU said and what $t0rm said.

I know!

Antichrist

Ah, and I didn't even catch that, I may need more knowledge than I thought. Hiding it would cause a problem I image, because would it not still be running even though you click the button..

hismajesty

Hiding it just means it isn't visible. For what you need, use the code I posted.