windows control library

M

Mihai Velicu

I created a control library and i created a control.I can test it is ok.I
added this control to a form .Run the form is ok also.After i modified the
control to add some new features and i had some errors i don't have access
to the form .I rebuild the solution, i rebuild the control library, is for
nothing.Even I undo the changes, i recompiled the control library , so now
is like at the beggining , i still don't have access to the form, only to
code of the form.

When I tried to see the form it shows me the following error:

One or more errors encountered while loading the designer. The errors are
listed below. Some errors can be fixed by rebuilding your project, while
others may require code changes.

The variable 'NrSystemForAccounts1' is either undeclared or was never
assigned.

Hide Edit

at

System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(I

Desi

gnerSerializationManager manager, String exceptionText, String helpLink)

at

System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Deseria

lize

Expression(IDesignerSerializationManager manager, String name,
CodeExpression expression)

at

System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Deseria

lize

Expression(IDesignerSerializationManager manager, String name,
CodeExpression expression)

at

System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Deseria

lize

Statement(IDesignerSerializationManager manager, CodeStatement

statement)

How I can correct this problem ?

Thank you,

Mihai
 
K

Kevin

In the "Solution Explorer" where it lists all of your forms, click the
"Show all files" icon on the toolbar, then click the + next to the
form you can't view. Double-click the file that ends with
".Designer.vb".

Look through the code and delete any reference to your control. There
should be a red line under it. Once it's all deleted, you should be
able to view the form designer and add a new control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top