FarPoint.Win Assembly > FarPoint.Win Namespace > SuperEditBase Class : ControlType Property |
'Declaration Public Overridable Property ControlType As ControlType
'Usage Dim instance As SuperEditBase Dim value As ControlType instance.ControlType = value value = instance.ControlType
public virtual ControlType ControlType {get; set;}
Use this property to determine how the contents of the edit control are handled.
Note: The same events occur for read-only controls as for normal controls. For static controls, only the following events occur: Click, DoubleClick, DragDrop, DragOver, MouseDown, MouseMove, and MouseUp. |
When the this property is set to ControlType.Static, the TabStop property is automatically set to false.
Setting ControlType.ButtonEdit has an effect only when the ButtonStyle property is set to a value other than ButtonStyle.None.
control.EditModeCursorPosition = FarPoint.Win.EditModeCursorPosition.LastKnownPosition; control.Text = "This is a test for HideSelection"; control.ControlType = FarPoint.Win.ControlType.Normal; control.SelectionStart = 2; control.SelectionLength = 5; control.Selectable = true; control.HideSelection = false; control.AutoMenu = true; textBox1.Text = control.SelectedText(); control.MaxLength = 9;
control.EditModeCursorPosition = FarPoint.Win.EditModeCursorPosition.LastKnownPosition control.Text = "This is a test for HideSelection" control.ControlType = FarPoint.Win.ControlType.Normal control.SelectionStart = 2 control.SelectionLength = 5 control.Selectable = True control.HideSelection = False control.AutoMenu = True TextBox1.Text = control.SelectedText() control.MaxLength = 9
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8