Search code examples
c#winformsnumericupdown

Make a border of disabled NumericUpDown same to TextBox


enter image description here

Is it possible to achieve not by subclassing a NumericUpDown?


Solution

  • Sadly, this is not possible. I tried to retrieve a real Vista / 7 textbox border for a custom control, but all methods I tried didn't work.

    The only solution is a dummy textbox around a borderless numeric up down (I hope it's possible to hide the border of it).

    Also see my question: Draw TextBox border as in Vista / 7