No Exit in menu requirement.

F

fhunter

I believe I unsderstand the value of not having a way
to "Exit" the app but really just a way to send it to the
background and have the operating system close the app
when it needs resources. However, how is this problem
resolved:
We run our application. We press the "Home" button in the
middle of the app. The application loses focus and
disapears. At that time we deceide we no longer what this
application so we go to the Settings menu and Select
Remove Programs and uninstall the app. Works fine.
But now we see two problems. One the application now
automatically comes back into focus (why?), and ofcourse
if we try to work with it fails.
In addition, after uninstalling the app, our application
icon on the task bar is no longer our nice pretty icon
but a default windows file icon. When we click on it we
get an "Error opening the Shortcut or Location the target
filename".
How do we resolve these two issues?

Thank you
 
S

Shanti

1. Closing the application in CF like 'End' in the big-brother is simple. I
created an 'Exit' submenu int the 'File' menu. In the Click event of the
'Exit' menu item, put these two statements:

Me.Close()
Application.Exit()

2. For your second question, I think uninstall will not know of shortcuts
and these are to be deleted manually. That is what I observed 2 or 3 times
that I uninstalled some programs.

ThanQ...
 
F

fhunter

Thanks Shanti,

The problem we have is a bit different. We know how to
close the application, but if the application
is "minimazed" and the user uninstalls the application
how do we close it? We have no control over that and from
what we can see the Shell is not calling OnClose() on the
form.

On the second one. These are the Shortcuts that Windows
adds automatically to the top bar when the user runs the
application, so how do we know what we need to clean out?
Any examples?

Thanks
 

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

Top