to hide the arrows I have added numericUpDown.Controls[0].Hide(); and it hides the arrows but leaves white space when form is opened.
How to hide them to be like simple textBox?
You can hide the arrows by accessing the numericUpDown's Controls property. You can either hide or remove them: You can do this right after IntializeComponent (). Show activity on this post.
You can configure how values are displayed in the Windows Forms NumericUpDown control. The DecimalPlaces property determines how many numbers appear after the decimal point; the default is 0. The ThousandsSeparator property determines whether a separator will be inserted between every three decimal digits; the default is false.
There are two controls in the NumericUpDown control. One is the up down buttons and the second is an edit box. down buttons. Therefore you can hide them. See below: were. up down buttons used to be.
to hide the arrows I have added numericUpDown.Controls [0].Hide (); and it hides the arrows but leaves white space when form is opened. How to hide them to be like simple textBox? Show activity on this post. You can hide the arrows by accessing the numericUpDown's Controls property. You can either hide or remove them:
You can use this code. This code show up&down controllers, but they dont work, you use this code in Form_Load
YourNumericName.Controls[0].Enabled= false;
You can hide the arrows by accessing the numericUpDown's Controls
property. You can either hide or remove them:
numericUpDown1.Controls[0].Visible = false;
or
numericUpDown1.Controls.RemoveAt(0);
You can do this right after IntializeComponent().
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With