PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
background runnig with a notify icon..
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
background runnig with a notify icon..
![]() |
background runnig with a notify icon.. |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 > > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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. |
|
|
|
#4 |
|
Junior Member
|
You can try to to create an singleton object for your application.
|
|
|
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

