carpdog88
January 30th, 2007, 12:39 PM
I want to start an event when the user presses the enter key.
I have it set up like this:
this->AcceptButton = this->enterButton;
...
private: System::Void enterButton_Click(System::Object^ sender, System::EventArgs^ e) {
...
the problem is, this method requires me to have a button visible on the form. How can I do this without the button?
P.S. - I have to do this in .NET -- no MFC please
thanks
I have it set up like this:
this->AcceptButton = this->enterButton;
...
private: System::Void enterButton_Click(System::Object^ sender, System::EventArgs^ e) {
...
the problem is, this method requires me to have a button visible on the form. How can I do this without the button?
P.S. - I have to do this in .NET -- no MFC please
thanks