I am trying to create a class based on the mmTextBox class. I created a new class of UserControl, added the OakLeaf.MM.Main.Windows.Forms namespace and changed the parent class to mmTextBox. I then tried to change several properties, such as BackColor, Font, etc. I get an error when I compile indicating that the properties are readonly. How do I need to go about this? The code I tried is below. Thanks.
public partial class EditStatusTextBox : mmTextBox
{
public EditStatusTextBox()
{
InitializeComponent();
this.Text = "View";
this.BackColor.R = 255;
this.BackColor.G = 255;
this.BackColor.B = 128;
}
}
Linda Harmes
HiBit Technologies, Inc.