BUG? ''
-
---------------------------------------- Visual Studio 2003 v7.1.3088 .NET Framework 1.1.4322 SP1 ---------------------------------------- I have a large WinForms project. I have a form where I added a checkbox chkIsEmployee. Sporatically, I get errors: 'chkIsEmployee' is not a member of 'ClearView.SMS.frmStudentManagement' However, all of the designer code appears to be intact: ... [Line 133] Friend WithEvents chkIsEmployee As System.Windows.Forms.CheckBox ... [Line 181] Me.chkIsEmployee = New System.Windows.Forms.CheckBox ... [Line 346] Me.grpDemographics.Controls.Add(Me.chkIsEmployee) ... ' 'chkIsEmployee ' [Line 371] Me.chkIsEmployee.Location = New System.Drawing.Point(222, 99) [Line 372] Me.chkIsEmployee.Name = "chkIsEmployee" [Line 373] Me.chkIsEmployee.Size = New System.Drawing.Size(92, 16) [Line 374] Me.chkIsEmployee.TabIndex = 16 [Line 375] Me.chkIsEmployee.Text = "is employee" ... Now, I open the form, and the checkbox control is visibly gone. It is almost as though the compiler is ignoring line 133. All lines after 133 have the error - not 133. I rebuild the app and sometimes, suddenly all is OK. I have tried deleteing the checkbox and re-adding it. The problem keeps re-surfacing. It was doing this behavior on a different control before. Later, I open the form, and the control is gone again, but all the declaritive code in the form is still there. This happened to me before (in this project with a different form), and I had to create a new form, paste controls on, paste my code in, delete the old form and the behavior went away. I tried that here, but the behavior keeps comming back. Is anyone aware of a bug or a fix for this? Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln
-
---------------------------------------- Visual Studio 2003 v7.1.3088 .NET Framework 1.1.4322 SP1 ---------------------------------------- I have a large WinForms project. I have a form where I added a checkbox chkIsEmployee. Sporatically, I get errors: 'chkIsEmployee' is not a member of 'ClearView.SMS.frmStudentManagement' However, all of the designer code appears to be intact: ... [Line 133] Friend WithEvents chkIsEmployee As System.Windows.Forms.CheckBox ... [Line 181] Me.chkIsEmployee = New System.Windows.Forms.CheckBox ... [Line 346] Me.grpDemographics.Controls.Add(Me.chkIsEmployee) ... ' 'chkIsEmployee ' [Line 371] Me.chkIsEmployee.Location = New System.Drawing.Point(222, 99) [Line 372] Me.chkIsEmployee.Name = "chkIsEmployee" [Line 373] Me.chkIsEmployee.Size = New System.Drawing.Size(92, 16) [Line 374] Me.chkIsEmployee.TabIndex = 16 [Line 375] Me.chkIsEmployee.Text = "is employee" ... Now, I open the form, and the checkbox control is visibly gone. It is almost as though the compiler is ignoring line 133. All lines after 133 have the error - not 133. I rebuild the app and sometimes, suddenly all is OK. I have tried deleteing the checkbox and re-adding it. The problem keeps re-surfacing. It was doing this behavior on a different control before. Later, I open the form, and the control is gone again, but all the declaritive code in the form is still there. This happened to me before (in this project with a different form), and I had to create a new form, paste controls on, paste my code in, delete the old form and the behavior went away. I tried that here, but the behavior keeps comming back. Is anyone aware of a bug or a fix for this? Thanks, -Len Miller "If I had eight hours to chop down a tree, I'd spend six sharpening my axe." -Abraham Lincoln
Yep, it's a bug in the IDE. Nope, there is no permanant fix for it yet. You've already discovered the only work around I know of. SP1 for Visual Studio 2003 should be comming out sometime last month. :laugh: Oh! Have you installed SP1 for the .NET Framework 1.1?? If not, get it from here[^]. Visual Studio 2003 Service Pack 1[^] Dave Kreskowiak Microsoft MVP - Visual Basic -- modified at 15:36 Tuesday 11th July, 2006