Window.Changed

From Xojo Documentation

Property (As Boolean )
aWindow.Changed = newBooleanValue
or
BooleanValue = aWindow.Changed

Supported for all project types and targets.

Indicates whether the window has been modified. The ContentsChanged event fires when the value of this property has changed. On macOS, the window's Close button displays a dot when Changed is True.

Sample Code

This example is in the ContentsChanged event of the control.

If Me.Changed Then
MsgBox("The contents have changed!")
Else
MsgBox("The ContentsChanged event has not fired.")
End If