Author | Message | Time |
---|---|---|
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. | August 27, 2004, 12:26 AM |
hismajesty | [code]Me.Close[/code] | August 27, 2004, 1:04 AM |
St0rm.iD | me.hide me.visible = false | August 27, 2004, 12:51 PM |
Antichrist | Thanks hismajesty, I used your code: [code] Me.Close [/code] 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. | August 30, 2004, 8:40 PM |
Myndfyr | [quote author=Antichrist link=board=37;threadid=8392;start=0#msg78212 date=1093898434] Thanks hismajesty, I used your code: [code] Me.Close [/code] 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. [/quote] 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. | August 30, 2004, 11:01 PM |
hismajesty | He asked to close it - not hide it, though. :P | August 30, 2004, 11:02 PM |
Myndfyr | [quote author=hismajesty[yL] link=board=37;threadid=8392;start=0#msg78243 date=1093906967] He asked to close it - not hide it, though. :P [/quote] Well then $t0rm's methods wouldn't have worked. I was illustrating the difference between what YOU said and what $t0rm said. | August 30, 2004, 11:05 PM |
hismajesty | [quote author=MyndFyre link=board=37;threadid=8392;start=0#msg78245 date=1093907119] [quote author=hismajesty[yL] link=board=37;threadid=8392;start=0#msg78243 date=1093906967] He asked to close it - not hide it, though. :P [/quote] Well then $t0rm's methods wouldn't have worked. I was illustrating the difference between what YOU said and what $t0rm said. [/quote] I know! | August 30, 2004, 11:06 PM |
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.. | September 1, 2004, 12:18 AM |
hismajesty | Hiding it just means it isn't visible. For what you need, use the code I posted. | September 1, 2004, 1:14 AM |