Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Design time winform error in VS 2008 - Cannot load...
 

Design time winform error in VS 2008 - Cannot load...

Ihave a complex winform in a Visual Studio Team System 2008project. Suddenly when opening the winform in design mode it is displaying the text: To prevent possible data loss before loading the designer, the following errors must be resolved:

Value does not fall within the expected range.

The variable 'navBarControl1' is either undeclared or was never assigned.

The designer breaks in line: this.Controls.Add(this.navBarControl1);

The control is declared:

private DevExpress.XtraNavBar.NavBarControl navBarControl1;

and the control is assigned:

this.navBarControl1 = new DevExpress.XtraNavBar.NavBarControl();

But I have never made any changes to the designer file. What can I do, I have severval days of work if I have to recreate the GUI from the button again. And what about the next timeit crashes?

Jakob

JLGIS  Monday, March 31, 2008 8:45 PM
Looks like a bug to me. You can file bug reports to Microsoft's connect web site and DevExpress's support web site with reproduce steps so they can find out who to blame and who should take action.
Sheng Jiang 蒋晟  Monday, March 31, 2008 9:19 PM
Looks like a bug to me. You can file bug reports to Microsoft's connect web site and DevExpress's support web site with reproduce steps so they can find out who to blame and who should take action.
Sheng Jiang 蒋晟  Monday, March 31, 2008 9:19 PM
I have the same problem, VS 2008, SP1, the program build and execute without problem, but suddenly comes two errors:

The variable 'settingsColors1' is either undeclared or was never assigned.

Object reference not set to an instance of an object.

But the program build and execute.

The project was not changed, any idea? it is not simple to reproduce because comes without a previous action.

Thanks

JAGG

freedeveloper  Thursday, July 30, 2009 1:46 PM

You can use google to search for other answers

Custom Search

More Threads

• How to get a Visio Like Design Area?
• Controls emulating Mac interface
• Regionmaster Controls updated
• designer problem: inheriting from TextBox
• Propertygrid expandable property sub property
• How to enable scrolling custom form designer using the middle mouse button?
• Suspending anchoring temporarily
• Toolbar Button Problem
• PRB - Custom DataGridViewColumn (eg From the samples - CalendarColumn, MaskedColumn)
• How to SetCompatibleTextRenderingDefault at Design Time (C#)