Just in case someone is trying to trap the min/max buttons of the form here's the code.
In vb.net it would be
If Me.WindowState = FormWindowState.Maximized Then
do something
end if
In Jabaco it is
If Me.WindowState = vbMaximized Then
do something
end if
Neil