all groups > dotnet windows forms designtime > march 2006 >
You're in the

dotnet windows forms designtime

group:

One or more errors encountered while loading the designer.


One or more errors encountered while loading the designer. Daniel Corbett
3/3/2006 2:31:30 PM
dotnet windows forms designtime:
Then it says, "Object reference not set to an instance of an object. "

and "at DevExpress.XtraGrid.Design.GridControlDesigner.Initialize(IComponent
component)"

In my error list, numerous variables that work fine in running code, but it
says stuff like "Object reference not set to an instance of an object."
"The variable 'gridControl1' is either undeclared or was never assigned.",
etc.

When I look at the Designer code, these are both declared and assigned
above, prior to the line mentioned.

What's the best way to troubleshoot this kind of problem?

I have commented out all custom code, and the application compiles fine.

Thanks for your help in advance.

- Daniel

RE: One or more errors encountered while loading the designer. jetan NO[at]SPAM online.microsoft.com (
3/6/2006 1:44:59 AM
Hi Daniel,

Thanks for your post!

Without reproducing your problem, our information is limited. Based on the
error message, you should have declared certain reference variable,
however, you did not use the "new" keyword to initialize an object instance
for this reference. So when using it, the NullReferenceException will
generate. You should check if these error references have been initialized
correctly.

If you still did not resolve this problem, I suggst you narrow down this
problem into a little sample project, so that I can reproduce on my side
for better understanding.

I look forward to hearing from you. Thanks!

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
AddThis Social Bookmark Button