Visavi Visual OPC .NET  

OpcCheckBox Class

Represents a Windows check box that binds to an OPC item.

For a list of all members of this type, see  OpcCheckBox Members.

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         System.Windows.Forms.Control
            System.Windows.Forms.ButtonBase
               System.Windows.Forms.CheckBox
                 Visavi.Opc.Client.Forms.OpcCheckBox

[Visual Basic]
 Public Class OpcCheckBox
   Inherits OpcControl
[C#]
 public class OpcCheckBox: OpcControl
[C++]
 public __gc class OpcCheckBox : public OpcControl
[JScript]
public class OpcCheckBox extends OpcControl

Thread Safety

Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Remarks

Use a OpcCheckBox to give the user an option, such as true/false or yes/no. The check box control can display an image or text or both.

The Appearance property determines whether the check box appears as a typical check box or as a button.

The FlatStyle property determines the style and appearance of the control. If the FlatStyle property is set to FlatStyle.System, the user's operating system determines the appearance of the control.

Note   When the FlatStyle property is set to FlatStyle.System, the CheckAlign property is ignored and the control is displayed using the ContentAlignment.MiddleLeft or ContentAlignment.MiddleRight alignment. If the CheckAlign property is set to one of the right alignments, the control is displayed using the ContentAlignment.MiddleRight alignment; otherwise, it is displayed using the ContentAlignment.MiddleLeft alignment.

The OpcCheckBox class provides properties that specify to which OPC Server to connect, when to connect to that server, and the OPC groups to add to the server after the connection is made. The ServerIdentifier property identifies the server to which the connection will be made. Using the designer's property grid, you may browse your network for the server, or you may type in a URI type string that identifies the server. The ConnectionScheme property determines when the client connects to the server (i.e. Runtime only, Design-time only, Manually, etc.). The ItemID is the OPC item to which when the connection with the OPC Server is made. After selecting the server, you may browse for the item using the designer's property grid.

Requirements

Namespace: Visavi.Opc.Client.Forms

Platforms:  Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family

Assembly: Visavi.Opc.Client.Forms

See Also

OpcCheckBox Members | Visavi.Opc.Client.Forms Namespace