The easiest way is to write an OnKeyDown-event for the edit control like:
void __fastcall TAdminForm::EdAantalKeyDown(TObject *Sender, WORD &Key,
TShiftState Shift)
{
//Only numeric, enter en backspace are allowed
if ((char)Key == 8 || (char)Key == 13)
return;
if...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.