
Signature
Armando Rocha
Mobile Developer
http://www.ifthensoftware.com
Hi Serge,
Set the textbox tabstop property to false.
this.textBox1.TabStop = false;
But still it will allow user to tap on the textbox to get the focus,
you can add gotfocus event and put the focus to form, soemthing like
this.
This is because, you cannot capture mouse events and click event on CF
textbox control.
private void textBox1_GotFocus(object sender, EventArgs e)
{
textBox1.TopLevelControl.Focus();
}
If you have multiple textboxes to do the same stuff, create a extended
textbox control and override the gotfocus.
public class TextBoxEx : TextBox
{
public TextBoxEx()
{
ReadOnly = true;
}
protected override void OnGotFocus(EventArgs e)
{
this.TopLevelControl.Focus();
base.OnGotFocus(e);
}
}
Hope this helps,
Cheers,
Arun
On May 9, 7:10 am, "Armando Rocha" <armandoro...@ifthensoftware.com>
wrote:
> Hi,
>
[quoted text clipped - 44 lines]
>
> - Show quoted text -