mojtaba mojtaba - 2 months ago 20
C# Question

Difference between NumericUpDown.Text and NumericUpdown.Value

What is difference between NumericUpDown.Text and NumericUpdown.Value?

May Text and Value Property dependent relation or completely independent?

Answer

I think numericUpDown1.Value typically references a public decimal Value { get; set; } which is decimal based on http://msdn.microsoft.com/en-us/library/system.windows.forms.numericupdown.value.aspx

and NumericUpDown.Text references public virtual string Text { get; set; } which is string

http://msdn.microsoft.com/en-us/library/cs40s7ds.aspx

Comments