DesktopTextField.Hint

From Xojo Documentation

Property (As String )
aDesktopTextField.Hint = newStringValue
or
StringValue = aDesktopTextField.Hint

New in 2021r3

Supported for all project types and targets.

Use to display a hint in the field. The Hint appears in the DesktopTextField in grey text.


Notes

On Windows and Linux, the Hint only appears when the TextField does not have focus.


Example

This example is in the Opening event of the control:

Me.Hint = "Enter something"