Can I hide Value in NumericUpDown control?

Note: This is dependent on the current implementation of NumericUpDown.

Note: This is dependent on the current implementation of NumericUpDown. What you need to do is create a new control that inherits from NumericUpDown such that: public partial class SpecialNumericUpDown : NumericUpDown { public SpecialNumericUpDown() { InitializeComponent(); } protected override void UpdateEditText() { if (this. Value!

= 0) { base.UpdateEditText(); } else { base. Controls1. Text = ""; } } }.

It seems that there is only very limited support for changing the formatting. I have not tried this myself. But you could create a subclass and override the UpdateEditText method to support your custom format.

Something like this: protected override void UpdateEditText() { this. Text = Value.ToString(); // Insert your formatting here }.

Public partial class MyNumericUpDown : NumericUpDown { public override string Text { get { if (base.Text. Length == 0) { return "0"; } else { return base. Text; } } set { if (value.

Equals("0")) { base. Text = ""; } else { base. Text = value; } } } }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions