|
||
|
|
#1 (permalink) |
|
Forum Novice
Join Date: May 2005
Age: 26
Posts: 118
|
Ok i got my Form to start and stop a process with the start and kill method only thing is after i kill the process and i click the "X" at the top of the form again i get an error. i've tryed alot of method's and no luck any idea's?
Code:
private void button2_Click(object sender, EventArgs e)
{
Notpad.Kill();
}
|
|
|
|
|
|
#3 (permalink) |
|
ConnectUO Creator
Join Date: Jan 2004
Age: 27
Posts: 4,824
|
whats the error?
__________________
Jeff Boulanger ConnectUO - Core Developer Want to help make ConnectUO better? Click here to submit your ideas/requests Use your talent to compete against other community members in RunUO hosted coding competitions If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team. Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO |
|
|
|
|
|
#4 (permalink) |
|
Forum Novice
Join Date: May 2005
Age: 26
Posts: 118
|
after the close button is clicked once the second time it's clicked and the process is shut down the error is "No process is associated with this object" it close's the process but if it's clicked again it give the error.
|
|
|
|
|
|
#5 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
|
You could put the Notepad.Kill() inside a try{} catch{} or Im sure there is a method for testing if the process is currently active (dont know for sure, just a guess) and just stick it in a if then statement like
Code:
if (process.Running()) process.Kill(); |
|
|
|
|
|
#6 (permalink) |
|
ConnectUO Creator
Join Date: Jan 2004
Age: 27
Posts: 4,824
|
Seems to me you need to post your code for us to help/
__________________
Jeff Boulanger ConnectUO - Core Developer Want to help make ConnectUO better? Click here to submit your ideas/requests Use your talent to compete against other community members in RunUO hosted coding competitions If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team. Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO |
|
|
|
|
|
#7 (permalink) | ||
|
Forum Expert
|
Quote:
-Storm
__________________
Quote:
|
||
|
|
|
|
|
#9 (permalink) | ||
|
Forum Expert
|
Quote:
-Storm
__________________
Quote:
|
||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|