Notification Control Confusion

F

Felix

Hi,

I was able to add a notification control to my .net compact 2.0 pocket
pc application. But i'm confused as to how to remove it. There is only
a "hide" soft key button, but that still leaves the notification icon
on the top title bar. I found a method called SHNotificationRemove,
but this is an unmanaged code method. Are there any ways to get rid of
these notification controls using managed code?

Thank you!
Felix
 
P

Peter Foot [MVP]

You can handle the BalloonChanged or ResponseSubmitted events, and set the
Visible property to False in the case of the former. In the case of the
latter you need to place a link or form button on the Notification with a
target of "cmd:2" take a look at the Microsoft.WindowsCE.Forms.Notification
class topic in the help content for a more detailed explanation of this
unique identifier.

Peter
 
F

Felix

Hey Peter,

I did look at the msdn for Notification. Unfortunately when you set
visible=false and use the cmd:2 button all it does is just hide the
notification. If i close my application I still have one of my
softkeys mapped to "notification" and a little notification icon in
the top menu.

I need to be able to remove the notification so that the phone thinks
it was handled. Sort of like when you get a new text message and
you've read it. The notification goes away.

Thanks,
Felix
 

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