Notifications with no icon permanantly stuck after app exit

G

Guest

Hello,

I bought my PocketPC just a couple of days ago, and started playing with
VS2005, .NET CF 2.0 etc. I thought i'd try the Notification component - I
added it to my form, set a caption and text, visible to true, and ran the
app. After running my app (actually it was a small raytracer) a few times, I
noticed the notification icon for Windows Pocket PC 2003 was still there at
the top - even after my app exited.

Now I didnt set the icon property of the Notification component - I didnt
really understand what the component did, it seems. But when I click the
icon at the top of the srceen, the bar supposedly listing all the
notificaitons appears, but it appears empty (no icons). I can tap randomly
in the bar to see many notifications appearing, but I can't close them!

I really dont want to reset my device, why are they still there, how do I
close them, etc?

Any help would be really, really appreciated.

Thanks very much --

Kieren Johnstone
 
P

Peter Foot [MVP]

In order to actually dispose of a notification you must use the right syntax
in your buttons/links on the notification. For example if you use the url
cmd:n (where n is any number) it will only hide your notification bubble but
it will still remain on the titlebar.
You can use an application specific url here and it will fire the
responseSubmitted event and you can query the e.Response to see what option
was selected if you gave a choice.
The icon will also be dismissed if you set a timeout period for it.

Peter
 
G

Guest

Hello,

I think you may have misinterpreted my host, and though your information is
very consise and correct, I plan to use the Notification component never
again! I just want to get rid of these damned notification icons -- without
resetting my device! Cycling power doesnt work, obviously exiting the app
doesnt work, in fact the app is now uninstalled.

Are the active icons stored in the registry? Enumerable/deletable through
some API? I need them gone!

Cheers
Kieren
 
P

Peter Foot [MVP]

You can call SHNotificationRemove - You need the Guid which was used by your
notification, and it's numerical identifier probably 0 based from the first
one created. A soft reset should clear them too.

Peter
 

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