G
Guest
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
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