Adagio
Well-known member
- Joined
- Dec 12, 2005
- Messages
- 162
- Programming Experience
- Beginner
Most people here have probably seen this error before:
"to prevent possible data loss before loading the designer, the following errors must be resolved"
Currently I'm battling with a situation where I can't seem to find a solution. When I open design view for the form I get the following two exceptions:
1:
Object reference not set to an instance of an object.
at VeryLongBoringPath\LagerList.vb:line 86
2:
The variable 'LagerList1' is either undeclared or was never assigned.
Andresen frmLagerMainForm.Designer.vb Line:289 Column:1
The code at line 86 in LagerList.vb:
The code at line 289 in frmLagerMainForm.Designer:
The variable LagerList1 is declared and assigned at that point. Just before this line I have the following code, so at this point LagerList1 IS set to something, otherwise it would fail here, right?
Also note that it is only when I try to view the designer that it fails. When I run the application everything works just perfectly
Is there a way how to debug what happens when I open the designer view?
"to prevent possible data loss before loading the designer, the following errors must be resolved"
Currently I'm battling with a situation where I can't seem to find a solution. When I open design view for the form I get the following two exceptions:
1:
Object reference not set to an instance of an object.
at VeryLongBoringPath\LagerList.vb:line 86
2:
The variable 'LagerList1' is either undeclared or was never assigned.
Andresen frmLagerMainForm.Designer.vb Line:289 Column:1
The code at line 86 in LagerList.vb:
VB.NET:
Private userNameHeight As Integer = 15
The code at line 289 in frmLagerMainForm.Designer:
VB.NET:
Me.Controls.Add(Me.LagerList1)
The variable LagerList1 is declared and assigned at that point. Just before this line I have the following code, so at this point LagerList1 IS set to something, otherwise it would fail here, right?
VB.NET:
Me.LagerList1.Text = "LagerList1"
Also note that it is only when I try to view the designer that it fails. When I run the application everything works just perfectly
Is there a way how to debug what happens when I open the designer view?