|
-
Dec 4th, 2009, 11:17 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] is .Kill() bad to use?
I'm new to mobile development. When I click the X to close my program and then reopen it, the program reopens in the same state as I left it(including the text in textboxes, etc.). I would like for the program to restart each time I open it. So, I tried this:
System.Diagnostics.Process.GetProcessById(pid).Kill()
which works. However, since I'm new, I was wondering if this has any bad side effects. Is there some other method that I should be using to accomplish the desired result?
Thanks
VB.Net 2008
.Net Framework 2.0
"Must you breathe? 'Cause I need heaven..."
-
Dec 4th, 2009, 04:49 PM
#2
Frenzied Member
Re: is .Kill() bad to use?
Hi,
by default, the minimize box on Windows Mobile is just that - change it to False, and your form will close. If it is your 'main form' then the application will close.
It will change from 'OK' to 'X'
-
Dec 4th, 2009, 05:24 PM
#3
Thread Starter
Fanatic Member
Re: is .Kill() bad to use?
Thanks. I was actually posting this for a coworker, but he found the answer he was looking for in the meantime.
VB.Net 2008
.Net Framework 2.0
"Must you breathe? 'Cause I need heaven..."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|