Forcing a textbox style

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi all,

I use ES_NUMBER/ES_UPPERCASE/ES_LOWERCASE to force the textbox style.
Can it be un-done ?
I tried Call SendMessage(hWnd, EM_UNDO, 0, ByVal 0&) but this did not work.

In general I have a combo with two options "Numbers only" and "Upper case"

When it is set to the first value - the textbox is set to numbers only.
When I set it to the second (meaning - second time I use em_something) it is
not set to upper case and stays as "Numbers only"
I tried to use EM_UNDO before setting it to the desired case but could not.

Please show the correct way :)

TIA
Guy


.



Relevant Pages