ErrorProvider Xojo and Real Studio Plugin

ErrorProvider.ShowError Method

Shows a error for a given control. In this variation you can chose if the error should be shown on the left or right side of the control.

ShowError(
   source as RectControl,
   message as String,
   centerVertically as Boolean,
   placementToLeft as Boolean)

Parameters

source
The error provider will be displayed side by the control that is provided by this parameter.
message
The message to show. This message is shown in tooltip when hovering mouse over the error, it can also optionally be shown in other ways by using the events on the ErrorProvider.
centerVertically
If set to true then the error will be displayed vertically centered by the source control, else it will be displayed near the top.
placementToLeft
If set to true then the error will be displayed on left side of the control instead of the default right side.

Remarks

If the source control already has a error then existing error is removed and the new posted instead.

See Also

ErrorProvider Control