![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Jun 2006
Location: Fayettehell, NC
Posts: 56
Rep Power: 3
![]() |
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 System Imports System.IO If 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. ![]()
__________________
_Marshall_ "America has bred a society that is innocent and incapable of accepting responsibility, but yet, is able to place blame on others without guilt." |
|
|
|
|
|
#2 |
|
Expert Programmer
|
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() .
|
|
|
|
|
|
#3 | |
|
Programmer
Join Date: Jun 2006
Location: Fayettehell, NC
Posts: 56
Rep Power: 3
![]() |
Quote:
As for the me.close, i now feel absolutly retarded. Thank you for the reality check! 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* ![]()
__________________
_Marshall_ "America has bred a society that is innocent and incapable of accepting responsibility, but yet, is able to place blame on others without guilt." |
|
|
|
|
|
|
#4 | |
|
Expert Programmer
|
Quote:
|
|
|
|
|
|
|
#5 |
|
Programmer
Join Date: Jun 2006
Location: Fayettehell, NC
Posts: 56
Rep Power: 3
![]() |
I have a reputation for over complicating things somtimes. lol So this is proof that this reputation still holds water.
![]()
__________________
_Marshall_ "America has bred a society that is innocent and incapable of accepting responsibility, but yet, is able to place blame on others without guilt." |
|
|
|
|
|
#6 | |
|
Programming Guru
![]() ![]() ![]() |
Quote:
![]()
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Language display in program | Prm753 | C++ | 3 | May 30th, 2006 5:45 PM |
| Creating a program to test a program | sixstringartist | C | 8 | Jan 21st, 2006 1:15 PM |
| auto run hidden program. | kuroko | C++ | 9 | Aug 6th, 2005 10:05 AM |
| Nonsense Name generator program | chillster13 | C | 14 | Jun 17th, 2005 2:05 AM |
| errors make me close program | crypter | C# | 28 | Apr 13th, 2005 6:29 AM |