Click to See Complete Forum and Search --> : EditBox event


Gordon Lee
January 21st, 2005, 02:57 PM
Hi,

I'd like to catch the event when a user hits enter in the edit box.

Thanks.

coder0xff
January 21st, 2005, 06:59 PM
I am assuming that by EditBox you mean a text box... I don't know what else that might be :D

Anyway, my suggestion would be to trap KeyDown or KeyPress events and filter for when the enter key. If you need more specific instruction let us know (there is plenty info on net also).

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclasskeypresstopic.asp