A
Andy Baker
Does anyone have any VB.NET code on how to use SetUserNotification to
wake up a device. I am using VB.NET 2003 and OPENNETCF 1.4. The code I am
trying to use is:
Notify = New OPENNETCF.Win32.Notify.UserNotification
nt = New OPENNETCF.Win32.Notify.UserNotificationTrigger
nt.Type = NotificationType.Event
nt.Event = NotificationEvent.Wakeup
nt.Application = Path & "Invoicing.exe"
nt.StartTime = dtTime
intNotificationHandle =
OPPENNETCF.Win32.Notify.Notify.SetUserNotification(nt, Notify)
but this gives me the error 'Error setting UserNotification'.
I am have seen examples in C#, but not being much of a C# programmer,
I don't really understand what is going on! What I actually want to do is
wake up the device during the night, perform some overnight processing, then
set another notification event to do the same thing on the next working day.
Am I going about it in the right way? Thanks in advance.
Andy Baker
wake up a device. I am using VB.NET 2003 and OPENNETCF 1.4. The code I am
trying to use is:
Notify = New OPENNETCF.Win32.Notify.UserNotification
nt = New OPENNETCF.Win32.Notify.UserNotificationTrigger
nt.Type = NotificationType.Event
nt.Event = NotificationEvent.Wakeup
nt.Application = Path & "Invoicing.exe"
nt.StartTime = dtTime
intNotificationHandle =
OPPENNETCF.Win32.Notify.Notify.SetUserNotification(nt, Notify)
but this gives me the error 'Error setting UserNotification'.
I am have seen examples in C#, but not being much of a C# programmer,
I don't really understand what is going on! What I actually want to do is
wake up the device during the night, perform some overnight processing, then
set another notification event to do the same thing on the next working day.
Am I going about it in the right way? Thanks in advance.
Andy Baker