Hi CobraStrikes,
You could use a Label, set BackgroundColor to the same as a TextBox and use a Fixed3D border. This is probably the simplest.
You could also handle the Enter event of the TextBox and pass the focus on to the next control in the tab order
private void textBox1_Enter(object sender, System.EventArgs e)
{
Control c = textBox1;
// find the next control in the tab order until
// we encounter one that can be selected
do
c = this.GetNextControl(c, true);
while(!c.CanSelect && c != textBox1);
c.Focus();
}
On Fri, 30 Sep 2005 13:34:08 +0200, <Co**********@al.com> wrote:
Is there a easy way to stop a textbox receiving focus ? if so how ?
--
Happy coding!
Morten Wennevik [C# MVP]