terminate evb application

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi every one.... is there a way to close/terminate a running evb
application(.vb files). I'm using c# .net CF to do this. thanks for all the
help :D
 
The clean way to terminate the application is by locating the main form
using FindWindow and the caption of the form to get the window handle, then
send the window a WM_CLOSE message using SendMessage. If this fails you can
terminate the process but you'll need to identify the correct process. Take
a look at the OpenNETCF.Toolhelp namespace (www.opennetcf.org/sdf/) which
wraps the toolhelp APIs, this will allow you to list all running processes,
and you can then terminate the required one.

Peter
 
Great, i'll try it out. Thanks again.

Peter Foot said:
The clean way to terminate the application is by locating the main form
using FindWindow and the caption of the form to get the window handle, then
send the window a WM_CLOSE message using SendMessage. If this fails you can
terminate the process but you'll need to identify the correct process. Take
a look at the OpenNETCF.Toolhelp namespace (www.opennetcf.org/sdf/) which
wraps the toolhelp APIs, this will allow you to list all running processes,
and you can then terminate the required one.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top