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: Sat, 21 Jul 2007 04:36:00 -0700,    posted on: microsoft.public.dotnet.framework.compactframework        back       

Thread Index
  1    Rob S


UserNotification in OpenNETCF 2.1   
Hi there, 

Been using the notification class in previous versions which simply popped 
up a "baloon" type box which was perfect, with code like this:

not.Caption = "Registration";
not.InitialDuration = 4;
not.Text = "<b>Registration successful!</b>";
not.Visible = true;

Anyway, having now uploaded i believe we now need to use the 
UserNotification class with code like this:

OpenNETCF.WindowsCE.Notification.UserNotification n = new 
OpenNETCF.WindowsCE.Notification.UserNotification();
n.Action = OpenNETCF.WindowsCE.Notification.NotificationAction.Dialog;
n.Title = "SAMS";
n.Text = "Welcome " + info[0] + "\nYour PDA has now been successfully 
registered with ServiceMaster Ltd";
OpenNETCF.WindowsCE.Notification.Notify.SetUserNotification("SAMS PDA", 
DateTime.Now, n);

This has a completely different behaviour, firstly it displays like a 
reminder (infact it says 'Reminder' in the title instead of title i specify? 
Couple of other things, i can't specify HTML in the text and neither can i 
specify an interval for it to disappear? 

Is there more to this than meets the eye? 

Many thanks for any comments
Rob
Date:Sat, 21 Jul 2007 04:36:00 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


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