Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 20th, 2006, 1:23 PM   #1
randum77
Programmer
 
randum77's Avatar
 
Join Date: Jun 2006
Location: Fayettehell, NC
Posts: 56
Rep Power: 3 randum77 is on a distinguished road
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."
randum77 is offline   Reply With Quote
Old Jul 20th, 2006, 2:50 PM   #2
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
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() .
Booooze is offline   Reply With Quote
Old Jul 20th, 2006, 7:48 PM   #3
randum77
Programmer
 
randum77's Avatar
 
Join Date: Jun 2006
Location: Fayettehell, NC
Posts: 56
Rep Power: 3 randum77 is on a distinguished road
Quote:
Originally Posted by Booooze
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() .
Ah, the comment about imports makes sense now that you say that.

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."
randum77 is offline   Reply With Quote
Old Jul 20th, 2006, 8:11 PM   #4
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Quote:
Originally Posted by randum77
Ah, the comment about imports makes sense now that you say that.

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*
That's exactly right. I always wonder if people have tried the simplest solutions. It makes me feel akward when I have to ask them if they did the simplest thing, when it kind of makes them look stupid. Sometimes it is the answer though. Sometimes people just don't think. Not you in paticular or anything. Hell, even I have my moments.
Booooze is offline   Reply With Quote
Old Jul 21st, 2006, 11:34 AM   #5
randum77
Programmer
 
randum77's Avatar
 
Join Date: Jun 2006
Location: Fayettehell, NC
Posts: 56
Rep Power: 3 randum77 is on a distinguished road
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."
randum77 is offline   Reply With Quote
Old Jul 21st, 2006, 1:25 PM   #6
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Quote:
Originally Posted by randum77
I have a reputation for over complicating things somtimes.
Glad to see I'm not the only one
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:54 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC