Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

to forbid few characters in a dialog box

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
I would like to forbid few characters in the control of a dialog box. I think I must use the OnKeyDown function or OnChar function but what I have made doesn't work.
Someone can help me ?

Thanks !!
 
You want to use PretranslateMessage and stop the pressing of certain keys.

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top