• 0

[VB]How would I go about this project?


Question

Well, I am currently doing a project for school and if I read it correctly on the instruction sheet, the process should be like the flowchart below. (sorry for the sloppyness of the flowchart, I dont think I even got the shapes right. But hopefully everyone can understand it.)

I was wondering if people here could help me step by step? I know how to do the most parts of things, but the parts I am lost on are:

- Setting up the timer to hide the form after 5 Minutes.

- End a certian process that is running on the machine. (IE: Notepad.exe).

- Submitting data (from 2 textboxes) to a certian email address.

- After data is submitted, re-start the process that was ended.

If ANYONE could help me on those 4 parts, or any part, it would be GREATLY appericated!

Much thanks.

- Nathan B.

post-60949-1099183915_thumb.jpg

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

That might be quite hard becuase if someone has got notepad open for example then you would have to ask the user if the wanted to save the document before your program could continue. The first part is quite easy with the timer. Also if the user had a few instances of the process running then you would have to determin which one you wanted to close.

Link to comment
Share on other sites

  • 0

this should help you close a program:

killString = "taskkill /F /IM notepad.exe"

Call Shell(killString, vbHide)

start program:
Set SWShell = CreateObject("WScript.Shell")

SWShell.Run "c:\windows\explorer.exe"

remember to dim 'SWShell As Object'

the email is alot of code. I suggest you look at planetsourcecode.com for some examples.

(this is using vb6, if your using .net it may be slightly different)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.