I've the following issue, and just cannot figure it out myself:
I've a button, which's width and height can be set by numericupdowns. To prevent the button's text truncating, I've also set the minimumvalues, like this:
NumericUpDownWidth.Minimum = Convert.ToInt32(Button1.Width); NumericUpDownWidth.Value= Convert.ToInt32(Button1.Width); NumericUpDownHeight.Minimum = Convert.ToInt32(Button1.Height); NumericUpDownHeight.Value= Convert.ToInt32(Button1.Height);
The one with the Width property works perfectly well, but the Height always shows the button's default height value (24), doesn't matter what is the real height.
I've build in some debug, and with a label, could actually read in and show the real height attribute, but this numericupdown just refuses to do so.
Any suggestions what could cause this?
I'd appreciate any help.
Thanks in advance!