O
ORC
Does anyone have an idea on how to prevent a textbox from getting focus i.e.
the same function as "textBox.enabled = false" but without making the text
written in gray ?
This code works:
private void textBox1_GotFocus(object sender, System.EventArgs e)
{
textBox1.Parent.Focus(); // the form got the focus instead
}
but I would prefer to make a new control - let's call it an indicator, that
implements the above functionality.
Thanks!
Ole
the same function as "textBox.enabled = false" but without making the text
written in gray ?
This code works:
private void textBox1_GotFocus(object sender, System.EventArgs e)
{
textBox1.Parent.Focus(); // the form got the focus instead
}
but I would prefer to make a new control - let's call it an indicator, that
implements the above functionality.
Thanks!
Ole