I want to disable the X button on a form depending on a condition. So something like:
If Boolean Then
ControlBox = False
Else
ControlBox = True
End If
When I try and use this I get an error message saying visual basic does not support this function. This would be done on the form load and the boolean would not change.
I've searched this forum but can't find an answer to suite me needs.
Thanks in advance.