Hex Format in Edit Box

I'm using an Edit Box for the user to enter a number. So, I checked the Number style in the properties.

I really want the number to be in hexidecimal format instead of decimal. Is there an easy way to setup the Edit Box so the user enters hex

VF



Answer this question

Hex Format in Edit Box

  • burrowsUW

    Subclass your edit box or if you use the MFC create your own CEdit class and overwrite WM_CHAR to allow only the digits and A-F. In www.codeproject.com you find a lot of sample code for such edit controls.

  • Hex Format in Edit Box