Why you have to create a new class for every textbox? Just one, and after
that you can use it for every such a textbox, which Enter key you want to
control.
But I want it to do something different depending on which Textbox they
press <enter> in... unless there is a way to pass the controls name with it
also or something like that.
Or, you may create a delegate for the method which will be invoked to do the
actions. and after that what you have to do is only to change where the
delegate points for every textbox you wish to handle.
Or, you may create a delegate for the method which will be invoked to do the
actions. and after that what you have to do is only to change where the
delegate points for every textbox you wish to handle.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.