Hi,
I have a very simple app which is changing a panel backcolor by user input "txtCustomColor" I know how to use the text box keyDown event as you can see
private void txtCustomColo_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { panelCustom.BackColor = Color.(txtCustomColo.Text); } }
private void txtCustomColo_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
panelCustom.BackColor = Color.(txtCustomColo.Text);
}
As you are fully aware this event need to press the Enter btn on the keyboard. Now my question is how I can handle the event after updating the text box and Mouse clicking out of the Textbox (Could be any where but txtCustomColor even on windows taskbar)
Best Regards,