Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. BUG? ''

BUG? ''

Scheduled Pinned Locked Moved Visual Basic
helpcsharpdotnetvisual-studiowinforms
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Len Miller
    wrote on last edited by
    #1

    ---------------------------------------- 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

    D 1 Reply Last reply
    0
    • L Len Miller

      ---------------------------------------- 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

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups