/FlatNumericUpDownExample

A FlatNumericUpDown control.

Primary LanguageC#

FlatNumericUpDown

This example shows how you can customize rendering of NumericUpDown control and have a flat apperance.

The basic idea is deriving from a standard NumericUpDown and then:

  • Override OnPaint to draw flat border
  • Use a NativeWindow to trap WM_PAINT message of the internal UpDownButtons control and change its appearance:

FlatNumericUpDown