PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework background runnig with a notify icon..

Reply

background runnig with a notify icon..

 
Thread Tools Rate Thread
Old 17-01-2006, 06:36 AM   #1
GOGA
Guest
 
Posts: n/a
Default background runnig with a notify icon..


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

  Reply With Quote
Old 23-01-2006, 11:16 PM   #2
=?Utf-8?B?V2luc3Rvbg==?=
Guest
 
Posts: n/a
Default RE: background runnig with a notify icon..

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/...4858-e071-4daa-...

[2]
http://www.sergeybogdanov.com/Sampl...gleInstance.zip

Regards,

Winston
Augen NZ Limited
www.Augen.co.nz

"GOGA" wrote:

> 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
>
>

  Reply With Quote
Old 25-01-2006, 12:12 AM   #3
GOGA
Guest
 
Posts: n/a
Default Re: background runnig with a notify icon..

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.

  Reply With Quote
Old 18-12-2006, 03:58 AM   #4
storynana
Junior Member
 
Join Date: Dec 2006
Posts: 7
Trader Rating: (0)
Default Singleton

You can try to to create an singleton object for your application.
storynana is offline   Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off