![]() |
creating a program that will auto close when done?
I've been working with .net for a bit now and can build apps that have a bunch of buttons and require user intervention. I've also build VBScripts that run procedures and such and they don't require any user intervention, but have limited capabilities (or so it seems). In VB.net i can import classes at the begining of the code. Say for instance:
:
Imports SystemIf i do that in VBscripts it never works, i get errors like crazy. So, either, can i get those to work in VBScripts or is there a way to make a *.exe auto close after it's done running? I would rather go w/ an *.exe / solution file since i can do alot more from it. Let me know. :) |
The reason that code doesn't work is because it imports classes form the .Net framework. VBScripts don't utilize the .Net framework. As for a "*.exe solution", if you mean just close the program using code, try Me.Close() .
|
Quote:
As for the me.close, i now feel absolutly retarded. :confused: Thank you for the reality check! :D I've put that in so many close buttons and didn't even think about it. I can then build the entire procedure in the Load event. Then place the Me.Close() at the end and woopy, it's done. *shakes head in shame* :D |
Quote:
|
I have a reputation for over complicating things somtimes. lol So this is proof that this reputation still holds water. :D
|
Quote:
|
| All times are GMT -5. The time now is 12:43 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC