all groups > dotnet windows forms > may 2007 >
You're in the

dotnet windows forms

group:

Problems with the Windows Forms Designer



Problems with the Windows Forms Designer ewpatton NO[at]SPAM gmail.com
5/30/2007 1:39:14 PM
dotnet windows forms: 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
Re: Problems with the Windows Forms Designer ewpatton NO[at]SPAM gmail.com
5/30/2007 8:36:16 PM
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

[quoted text, click to view]

Re: Problems with the Windows Forms Designer Ray Cassick
5/30/2007 10:47:32 PM
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.


[quoted text, click to view]

AddThis Social Bookmark Button