Winform Designer bugs and issues...
Mike Andrews <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <[email protected]> |
Guys,
My team is having a problem with the VS 2005 designer. Here's the error
that we are getting:
"The variable <object> is either undeclared or was never assigned"
This is becoming quite a problem and annoying. I was able to narrow down
the specific area that is causing the problem. It turns out that a
particular property that gets/sets a custom business object on the control
is the culprit and I have no idea why.
The property looks something like this:
[Browsable(false)]
[DesignerSerializationVisibility( DesignerSerializationVisibility.Hidden)]
public XYZ.Person.Business.Person PersonInfo {
get { return _person; }
set {
_person = value;
UpdateDisplay();
}
}
Now... what I did as a temporary fix was to remove the
XYZ.Person.Business.Person and replace it with object. And that "fixed" the
issue. However, in my testing, I couldn't narrow it down any futher as to
the root cause. I created a new business object and used it and it worked.
I tried removing several properties and methods but to no avail.
I'm just curious if any of you have had similar issues or problems or have
had any resolutions.
Thanks,
Mike