ErrorProvider Xojo Plugin |
|
DesktopErrorProvider.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 DesktopUIControl,
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 an error then existing error is removed and the new posted instead.
This variation of the method will only exist on Xojo 2021r3 and later.
See Also
DesktopErrorProvider Control