Hi Tom,
We just checked with the following VB code and it was working correctly:
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
AddHandler Me.NRichTextViewControl1.Widget.document.ModifiedChanged, AddressOf Me.EventHandler
End Sub
Sub EventHandler(eventArgs As Nevron.Nov.Dom.NEventArgs)
' Handle the event.
MsgBox("Document Changed.")
End Sub
End Class
When do you subscribe for this event - it may be that at the time when you subscribe the changed flag is already raised - to test this simply reset the flag before you subscribe:
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.NRichTextViewControl1.Widget.document.Modified = False
AddHandler Me.NRichTextViewControl1.Widget.document.ModifiedChanged, AddressOf Me.EventHandler
End Sub
Sub EventHandler(eventArgs As Nevron.Nov.Dom.NEventArgs)
' Handle the event.
MsgBox("Document Changed.")
End Sub
End Class
Also what type is RichTextEdit1?
Let us know if the problem persists...
Best Regards,
Nevron Support Team