exception when trying to view Designer for my windows form:

G

Guest

I have made a windows app using Visual C# .NET and have been designing a form
using the form designer and writing code. It was working just fine until
recently (I could view the code or view the designer just fine). Now, when I
try to view the designer, I get the following error message:

An error occurred while loading the document. Fix the error, and then try
loading the document again. The error message follows:
Property accessor 'IsMdiContainer' on object
'System.Windows.Forms.Design.FormDocumentDesigner' threw the following
exception:'Specified cast is not valid.'

I have no idea how to fix the error (I don't really understand what this
error is or if it within the domain of my application or a microsoft bug).

I don't remember what I did before this started happening. I can build my
application with no errors and run it just fine though.

Any help would be appreciated.

Thanks.
 
G

Guest

This is a really big windows form with many text boxes, etc, so I don't want
to post the entire code for initializeComponent() here (or should I?). The
constructor code hasn't changed in a long time:

public FormTest()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();

comPort = 1;
myAHRS = new AHRSData();

// Set default functions for AHRS500new
myAHRS.usrBit.getAlgState = new
AHRSData.usrBIT_class.getAlgStateDelegate(myAHRS.usrBit.algState_AHRS500_new);
myAHRS.usrBit.getCalState = new
AHRSData.usrBIT_class.getCalStateDelegate(myAHRS.usrBit.calState_AHRS510);
myAHRS.usrBit.update = new
AHRSData.usrBIT_class.updateDelegate(myAHRS.usrBit.update_AHRS500_new);
myAHRS.ahrsModel = AHRSData.AHRSModelEnum.undefined;

myTerm = new CommBaseSerial();
myTerm.settings.SetStandard("COM1", 57600, CommBaseSerial.Handshake.none);
myTerm.receiveEvent += new CommBaseSerial.receiveDelegate(handleRxChar);
}

Leah
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top