OPC Studio User's Guide and Reference
SetControlError Method



OpcLabs.BaseLibForms Assembly > OpcLabs.BaseLib.Forms Namespace > UserValueControl Class : SetControlError Method
The control to set the error description string for.
The error description string, or null or System.String.Empty to remove the error.
Sets the error description string for the specified control.
Syntax
'Declaration
 
Protected Sub SetControlError( _
   ByVal control As Control, _
   ByVal value As String _
) 
'Usage
 
Dim instance As UserValueControl
Dim control As Control
Dim value As String
 
instance.SetControlError(control, value)
protected void SetControlError( 
   Control control,
   string value
)
protected:
void SetControlError( 
   Control^ control,
   String^ value
) 

Parameters

control
The control to set the error description string for.
value
The error description string, or null or System.String.Empty to remove the error.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also