Agnes wrote:
As I run the program , there is always error 'Name '_txtCompany' is not
declared
I didn't modify found, i can't find any named "_txtCompany" in my program
I check "txtCompany" , this textbox seems quit ok , nothing special.
What is "_txtCompany" ??
please help
I too get this same error. To fix it I go into the " Windows Form
Designer generated code " Region of the code behind the form, and change
the line
Friend WithEvents txtCompany As System.Windows.Forms.TextBox
to
Friend WithEvents txtCompany2 As System.Windows.Forms.TextBox
move off the line (just up/down arrow), then go back (down/up) and
change it back to
Friend WithEvents txtCompany As System.Windows.Forms.TextBox
and it compiles.
This is surely a bug in VS.NET (or the compiler), and I hope it's fixed
in 2005. If not before, as I get it in about 3 or 4 files, which are
read-only (under source control - VSS 6.0d), so can't possibly have
changed since the last successful compile (about 1 minute previous). It
occurs about 1 in every 3 compiles.