18experience
Dec 4th, 2009, 10:17 AM
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
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