I am having trouble finding out info regarding how to stop my application from "Beeping" every time I change focus with the "ENTER" key.
For the sake of clarity here is the specific action and code which produces a sound (which I want to eliminate):
I am simply trying to change focus from one textBox to the other, when for instance a Last Name is entered, the user presses ENTER and it switches to the next textbox.
private: System::Void textLast_KeyDown(System::Object^ sender, System::Windows::Forms::KeyEventArgs^ e) {
if (e->KeyValue == (char)13)
{
textFirst->Focus();
}
}
The code works, but every textbox that I hit "Enter" on, I get an Alert or BEEP that I want to go away.