Class CalculatorTextBox
TextBox derived class that draws the display text for the CalculatorControl.
Inheritance
System.Object
CalculatorTextBox
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class CalculatorTextBox : TextBox
Constructors
CalculatorTextBox(ICalculatorButtonParent)
Initializes a new instance of the CalculatorTextBox class.
Declaration
public CalculatorTextBox(ICalculatorButtonParent calcParent)
Parameters
Type | Name | Description |
---|---|---|
ICalculatorButtonParent | calcParent | The calculator parent. |
Methods
OnCreateControl()
Raises the System.Windows.Forms.Control.CreateControl event.
Declaration
protected override void OnCreateControl()
Remarks
Overridden. Input focus is disabled
OnGotFocus(EventArgs)
Raises the System.Windows.Forms.Control.GotFocus event.
Declaration
protected override void OnGotFocus(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | An System.EventArgs that contains the event data. |
OnKeyDown(KeyEventArgs)
Indicates the parent that a KeyDown event has occurred.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.KeyEventArgs | e | The KeyEventArgs object defining the KeyDown event. |
WndProc(ref Message)
Overrides the WndProc to deactivate mouse click.
Declaration
protected override void WndProc(ref Message m)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Message | m | The Message. |