ToolStripItem NumericUpDown
-
Hello I have made now an ToolStripNumericUpDown control. Now I want to display a Text on the left side of the ToolStripNumericUpDown. How I can do that? At the moment the code is the following:
public class ToolStripNumericUpDownTest : ToolStripControlHost { public ToolStripNumericUpDownTest() : base(new NumericUpDown()) { } private NumericUpDown NumericUpDown { get { return Control as NumericUpDown; } } public decimal Value { get { return NumericUpDown.Value; } set { NumericUpDown.Value = value; } } }
Regards Hansjörg -
Hello I have made now an ToolStripNumericUpDown control. Now I want to display a Text on the left side of the ToolStripNumericUpDown. How I can do that? At the moment the code is the following:
public class ToolStripNumericUpDownTest : ToolStripControlHost { public ToolStripNumericUpDownTest() : base(new NumericUpDown()) { } private NumericUpDown NumericUpDown { get { return Control as NumericUpDown; } } public decimal Value { get { return NumericUpDown.Value; } set { NumericUpDown.Value = value; } } }
Regards HansjörgWhat you need to do is create your own user control that contains both a updown control and also a label control that will be to the left of the updown control. Then set the user control to a ToolStripControlHost. Regards, 1tg46 Check out 3D Game Development with Dark Basic Professional [^]programming.