class ClassTextBox : System.Windows.Forms.TextBox
{
protected override void OnEnter(System.EventArgs e)
{
base.OnEnter(e);
SelectAll();
}
}
class ClassTextBoxNum : System.Windows.Forms.TextBox
{
protected override void OnEnter(System.EventArgs e)
{
base.OnEnter(e);
SelectAll();
}
protected override void OnKeyPress(KeyPressEventArgs e)
{
if (!Char.IsDigit(e.KeyChar) && !Char.IsControl(e.KeyChar))
{
e.Handled = true;
}
base.OnKeyPress(e);
}
"Kevin Yu [MSFT]" wrote:
Hi Cadel,
Generally, the user control will not be transparent. Could you show us the
code that you implement your textbox class, and give us a simple example to
reproduce this issue?
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."