Problems with the Windows Forms Designer

  • Thread starter Thread starter ewpatton
  • Start date Start date
E

ewpatton

Hello all,

I've been working on a project in VC++.NET 2005 which contains a form
with a custom control. Today when I opened the project, the designer
complained:

Could not find type 'VIAWorkspace.Toolbar'. Please make sure that the
assembly that contains this type is referenced. If this type is a part
of your development project, make sure that the project has been
successfully built.

Now, I've rebuilt the solution. When it runs the toolbar appears as I
expect it to, but the IDE refuses to correct the problem.

How can I fix this?


Evan
 
I am assuming this is another project in your solution.



When you set up the reference did you set it as a project reference or a
direct reference to the binary file?



You may be seeing issues if you did the latter and then when you rebuilt the
version number of the control changed or something changed that made your
reference in the other project invalid now.



When I am using multiple projects in a solution I always set up project
references. When I am using prebuilt binaries you have to set up using a
direct reference to the binary but then that library is not going to change
as you rebuild.



Check it out.
 
This is a single project. I have Form1.h which includes Toolbar.h.
Toolbar is just a public ref class that inherits
System::Windows::Forms::Panel and adds a few extra functions. What I'm
confused by is that I can run the program and everything works fine,
but trying to edit the form causes problems. One would think that if
you couldn't view it in the editor, you couldn't also view it at
runtime.

Evan
 
Back
Top