Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / October 2004

Tip: Looking for answers? Try searching our database.

exception when trying to view Designer for my windows form:

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
xbow1 - 28 Oct 2004 03:01 GMT
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.
Sijin Joseph - 28 Oct 2004 04:23 GMT
Can you post the code for the form constructor and InitializeComponent()

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

> 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
[quoted text clipped - 16 lines]
>
> Thanks.
xbow1 - 28 Oct 2004 19:23 GMT
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

> Can you post the code for the form constructor and InitializeComponent()
>
[quoted text clipped - 22 lines]
> >
> > Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.