G
Guest
I subclassed a TextBox, but I can't get it to change the default Text
property. Whenever I create a new control based on this, it still gets
created with the Text value "myTextBox1". What am I doing wrong?
using System;
using System.Windows.Forms;
namespace MyControls
{
public class MyTextBox : TextBox
{
public MyTextBox()
{
this.Text = "";
}
}
}
TIA,
Mike Rodriguez
property. Whenever I create a new control based on this, it still gets
created with the Text value "myTextBox1". What am I doing wrong?
using System;
using System.Windows.Forms;
namespace MyControls
{
public class MyTextBox : TextBox
{
public MyTextBox()
{
this.Text = "";
}
}
}
TIA,
Mike Rodriguez