Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / January 2006

Tip: Looking for answers? Try searching our database.

background runnig with a notify icon..

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
GOGA - 17 Jan 2006 06:36 GMT
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
Winston - 23 Jan 2006 23:16 GMT
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

> Hi all,
> my problem is some how difficult...
[quoted text clipped - 14 lines]
>
> GOGA
GOGA - 25 Jan 2006 00:12 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.