Results 1 to 2 of 2

Thread: [RESOLVED] Exit from a smart device

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Dec 2001
    Posts
    1,331

    Resolved [RESOLVED] Exit from a smart device

    Hello,

    VS 2008 WM 5.0.

    I have an application and I want to shutdown a server that the mobile is connected to, to release all resources. This has to be done when the program exits.

    However, I am not sure where to put the function call 'drvShutDown()'

    Would the shutdown occur after all forms are closed. In which case I could put the function in the closed_event of the forms.

    For example my startup is form1. However, the program has many forms (form2, form3, etc).

    So where would I put my call to drvShutDown. Would this be in the startup form?

    Many thanks for any advice,

    Steve
    steve

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

    Re: Exit from a smart device

    Hi,
    yes - put it in the main form, if form1 calls form2, form3 etc

    Pete
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

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