Results 1 to 3 of 3

Thread: [RESOLVED] is .Kill() bad to use?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    Resolved [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..."

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    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'
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2006
    Posts
    675

    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
  •  



Click Here to Expand Forum to Full Width