|
|
|
|
TextBoxX Control, DevComponents.
This control replaces the windows form TextBox control.
Namespace: DevComponents.DotNetBar.Controls
Assembly: DevComponents.DotNetBar2.dll
Using: DevComponents.DotNetBar.Controls;
Declaring: DevComponents.DotNetBar.Controls.TextBoxX();
Creating the TextBoxX control.
DevComponents.DotNetBar.Controls.TextBoxX textBox = new DevComponents.DotNetBar.Controls.TextBoxX();
textBox.WatermarkText = "First Name";
textBox.Border.Class = "TextBoxBorder";
textBox.Location = new Point(100, 100);
textBox.Size = new Size(100, 23);
this.Controls.Add(textBox);
IntegerInput Control, DevComponents.
Creating the IntegerInput control.
DevComponents.Editors.IntegerInput Iinput = new DevComponents.Editors.IntegerInput();
Iinput.Size = new Size(60, 23);
Iinput.Location = new Point(20, 20);
Iinput.ShowUpDown = true;>
this.Controls.Add(Iinput);
Creating a ValueChanged event.
Iinput.ValueChanged += new EventHandler(Iinput_ValueChanged);
Responding to the ValueChanged event.
void Iinput_ValueChanged(object sender, EventArgs e)
{
DevComponents.Editors.IntegerInput ii = (DevComponents.Editors.IntegerInput)sender;
this.labelX1.Text = ii.Text;
}
Screenshots - Text Editors, DevComponents.
.
|
|
|
|
|