DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Sun, 22 Jul 2007 18:22:08 -0700,    posted on: microsoft.public.dotnet.framework.compactframework        back       

Thread Index
  1    Felix
          2    Peter Foot [MVP]
                 3    Peter Foot [MVP]
          4    Felix
          5    Felix


Notification Control Confusion   
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
Date:Sun, 22 Jul 2007 18:22:08 -0700   Author:  

Re: Notification Control Confusion   
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

-- 
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

"Felix"  wrote in message 
news:1185153728.131675.310100@m3g2000hsh.googlegroups.com...

> 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
> 
Date:Mon, 23 Jul 2007 15:51:07 +0100   Author:  

Re: Notification Control Confusion   
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

On Jul 23, 10:51 am, "Peter Foot [MVP]" <feedb...@nospam-
inthehand.com> wrote:

> 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
>
> --
> Peter Foot
> Microsoft Device Application Development MVPwww.peterfoot.net|www.inthehand.com
> In The Hand Ltd - .NET Solutions for Mobility
>
> "Felix"  wrote in message
>
> news:1185153728.131675.310100@m3g2000hsh.googlegroups.com...
>
> > 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
Date:Mon, 23 Jul 2007 15:35:34 -0000   Author:  

Re: Notification Control Confusion   
Did you call Dispose on the component?

Peter

-- 
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

"Felix"  wrote in message 
news:1185204934.332943.115740@i38g2000prf.googlegroups.com...

> 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
>
> On Jul 23, 10:51 am, "Peter Foot [MVP]" <feedb...@nospam-
> inthehand.com> wrote:
>> 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
>>
>> --
>> Peter Foot
>> Microsoft Device Application Development 
>> MVPwww.peterfoot.net|www.inthehand.com
>> In The Hand Ltd - .NET Solutions for Mobility
>>
>> "Felix"  wrote in message
>>
>> news:1185153728.131675.310100@m3g2000hsh.googlegroups.com...
>>
>> > 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
>
> 
Date:Mon, 23 Jul 2007 18:25:27 +0100   Author:  

Re: Notification Control Confusion   
Didn't think of that. Thanks. That worked just fine.

Felix

On Jul 23, 1:25 pm, "Peter Foot [MVP]" 
wrote:

> Did you call Dispose on the component?
>
> Peter
>
> --
> Peter Foot
> Microsoft Device Application Development MVPwww.peterfoot.net|www.inthehand.com
> In The Hand Ltd - .NET Solutions for Mobility
>
> "Felix"  wrote in message
>
> news:1185204934.332943.115740@i38g2000prf.googlegroups.com...
>
> > 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
>
> > On Jul 23, 10:51 am, "Peter Foot [MVP]" <feedb...@nospam-
> > inthehand.com> wrote:
> >> 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
>
> >> --
> >> Peter Foot
> >> Microsoft Device Application Development
> >> MVPwww.peterfoot.net|www.inthehand.com
> >> In The Hand Ltd - .NET Solutions for Mobility
>
> >> "Felix"  wrote in message
>
> >>news:1185153728.131675.310100@m3g2000hsh.googlegroups.com...
>
> >> > 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
Date:Tue, 24 Jul 2007 13:20:34 -0000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us