J
Jason Stamp
I have written 2 custom controls in VB.NET that I am referencing in a VB.NET
windows application.
The controls derive from standard .NET controls, 1 from the label and the
other from the button. I have added these to my toolbox and dragged them
into forms in my windows project.
They all work fine, but the trouble I am having is that studio occassionaly
removes the declarations of them in the windows generated code in the forms.
I can be writing code one minute, switch to the design view of a form and
the custom controls have disapeared. Then I get lots of errors saying there
is no declaration. I have to close the project without saving then open it
again to carry on, otherwise I have to add the controls in again.
When I have worked on a C# windows application, I have never had this issue.
Are there any known reasons as to why this is happening?
Thanks
Jason
windows application.
The controls derive from standard .NET controls, 1 from the label and the
other from the button. I have added these to my toolbox and dragged them
into forms in my windows project.
They all work fine, but the trouble I am having is that studio occassionaly
removes the declarations of them in the windows generated code in the forms.
I can be writing code one minute, switch to the design view of a form and
the custom controls have disapeared. Then I get lots of errors saying there
is no declaration. I have to close the project without saving then open it
again to carry on, otherwise I have to add the controls in again.
When I have worked on a C# windows application, I have never had this issue.
Are there any known reasons as to why this is happening?
Thanks
Jason