Gets and sets a handle to a custom icon associated with the Notetool.
Read-write property
Visual Basic |
---|
Public Property NoteIcon As Long |
The handle to the note icon.
This enables the application to override the default icon NotateXpress uses to display the NoteTool.
Make sure that the icon does not go out of scope, as the application controls ownership of the icon.
This property should be set once as its associated with the NotateXpress control.
Custom Note Icon (Visual Basic) | ![]() |
---|---|
'YouwillneedtoprototypetheLoadImagecall PrivateConstIMAGE_ICON=1 PrivateConstLR_LOADFROMFILE=&H10 PrivateDeclareFunctionLoadImageLib"user32"Alias"LoadImageA"(ByValhInstAsLong,ByVallpszAsString,ByValun1AsLong,ByValn1AsLong,ByValn2AsLong,ByValun2AsLong)AsLong PrivateSubSetNoteIcon_Click() NotateXpress1.NoteIcon=LoadImage(App.hInstance,"c:\\images\\newnoteicon.ico",IMAGE_ICON,0,0,LR_LOADFROMFILE) EndSub |