User Notification
 
Installation Reference
Using the control in NS Basic

|

|

Download

The S309UserNotification.ocx version 1.4 provides an ActiveX control that can display a Windows CE User Notification dialog box (same dialog used for reminders).

 

 

Installation of S309UserNotification ActiveX control on the Desktop

Transfer the desktop version of the S309UserNotification.ocx to the c:\Windows\system32 directory

Register the control on the desktop by doing:

Start - Run - regsvr32 c:\Windows\system32\S309UserNotification.ocx

You should get "DllRegisterServer in c:\Windows\system32\S309UserNotification.ocx Succeeded."

When the desktop control is registered properly it will automatically add the registry entries to enable it to be used with VBCE.

 

Using the S309UserNotification ActiveX control in NS Basic

Dim Handle
AddObject "S309.UserNotification.1", "un", xpos, ypos
un.Dialog = True
un.Sound = True
un.SoundFile = "Alarm2"
un.LED = True
un.Repeat = False
un.GetUserPreferances()
if un.Dialog then
  un.DialogTitle = "This is the Title"
  un.DialogText = "This is the Text"
end if
un.AppName = "S309UserNotification.ocx"   ' display icon from executable
un.DateTime = now + timeserial(0,0,5)   ' show in 5 seconds.
Handle = un.Set(0)  ' create a new event

"un" can be any name
xpos is the x-coord
ypos is the y-coord