background runnig with a notify icon..

G

GOGA

Hi all,
my problem is some how difficult...
i want to make an application that starts up with windows mobile... and
to show a notification icon in the down bar, so when i click it, it
shows up the application, plus when i close it the app it don't exit,
just to hide in the background and to still running there...
i think i can make most of that...
i can make it to run in the startup, and make the notification icon, my
problem is that when i click it,the app shows (after alot work in that
area)....
the real problem now is that when i click the app shortcut in the
Programs group, the application don't show up, i think that because the
WinCe don't allaw more than one instance of the same process.....
but i can't find a solution to that problem...

any idea anyone!!!!!


GOGA
 
G

Guest

Hi,
You are right, it only allows for one instance to be called. That is why
you can not run application when it has been already run.

There are a couple of examples which I found from another discussion thread.
Though as stated in this article there is workaround - find NETCF_AGL_PARK_
window handle for your application and rename it. When your application will
be run next time you can find Main window by title and activate it. See the
complete
example here [2].

[1]
http://blog.opennetcf.org/afeinman/PermaLink,guid,ec034858-e071-4daa-...

[2]
http://www.sergeybogdanov.com/Samples/SPSingleInstance.zip

Regards,

Winston
Augen NZ Limited
www.Augen.co.nz
 
G

GOGA

Dear Winston,
first, i thank you for reply...
second, your reply was great, but wasn't what i'm looking for....

i don't want to create a second instance of my app,
i want when i click on the short cut in programs group, to reactivate
my app and show it again....
for normal bahaviore, it should do that, but the problem is that i have
a button in my app that when pressed do "this.hide()" for the app and
hide it to the background, after that if i clicked the shortcut,
nothing happens.....

tell me what to do...


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