"Could not find type 'xxx'" error

  • Thread starter Thread starter Dom
  • Start date Start date
D

Dom

This one is a little difficult to explain.

I placed a RichTextBox control on my form, I called it chiMain, then I
wrote CHITextBox.cs. This class extends the RichTextbox class, and
has a constructor that looks like this: public CHITextBox () : base()
{...}

Then in Form1.Designer.cs, I changed the relevant line to:

this.CHIMain = new MyRTF.CHITextBox.CHITextBox();

The namespace is correct, it is what comes up in intellisense, anyway.

The program seems to work, but when I build it, I get the error
message mentioned in the subject. And I can't open Form1.cs [Design].

What do I do?
 
Back
Top