G
Guest
Hi Everyone,
I'm hoping someone out there can give me some guidance. I'm currenlty using
VS2005 and the other day the Form Wizzard stopped working. What I mean, is
that the wizzard no longer creates the code in the "Windows Form Designer
generated code" section. As a matter a fact, if I add a new form to the
project, that section is not even there. The only code that you will see is:
Public Class Form2
End Class
As you can see, it just creates an empty class. If I add controls to the
form, it seems like things are working, but I can check the code again, and
no code is added to the file. And if I work with it long anough, the controls
will disappear (happened to me yesterday). How the heck is this happening.
WHY IS THIS HAPPENING MS.
Whats strange is that I have other forms in the project that I created
before this problem and they are working as expected. I even tried copying
the code from a good form and deleting any reference to the controls (in the
old form) in the new form. It won't add the code for the new control in the
Form designer section. Sometimes I get an error
Error 70
'components' is already declared as 'Private Dim components As
System.ComponentModel.IContainer' in this class.
on the line:
"Private components As System.ComponentModel.IContainer"
when I paste the code into the new form. And there is no other references
(at least in this code file) to this line. Has anyone seen anything like
this. PLEASE Help.
Thanks
Mike
I'm hoping someone out there can give me some guidance. I'm currenlty using
VS2005 and the other day the Form Wizzard stopped working. What I mean, is
that the wizzard no longer creates the code in the "Windows Form Designer
generated code" section. As a matter a fact, if I add a new form to the
project, that section is not even there. The only code that you will see is:
Public Class Form2
End Class
As you can see, it just creates an empty class. If I add controls to the
form, it seems like things are working, but I can check the code again, and
no code is added to the file. And if I work with it long anough, the controls
will disappear (happened to me yesterday). How the heck is this happening.
WHY IS THIS HAPPENING MS.
Whats strange is that I have other forms in the project that I created
before this problem and they are working as expected. I even tried copying
the code from a good form and deleting any reference to the controls (in the
old form) in the new form. It won't add the code for the new control in the
Form designer section. Sometimes I get an error
Error 70
'components' is already declared as 'Private Dim components As
System.ComponentModel.IContainer' in this class.
on the line:
"Private components As System.ComponentModel.IContainer"
when I paste the code into the new form. And there is no other references
(at least in this code file) to this line. Has anyone seen anything like
this. PLEASE Help.
Thanks
Mike