PC Review


Reply
Thread Tools Rate Thread

From designer does not display

 
 
kpg
Guest
Posts: n/a
 
      2nd Apr 2010
I have a solution which contains a windows application project (vb.net) and
an owerdrawn control project (c#).

The owner drawn control is referenced by the windows form project (by
selecting the project in the add reference dialog),

After referencing the owner drawn control this way it appears in the
control toolbox for the windows form. I drag it onto the windows form and
it renders as expected. The project runs as it should.

Now, when I go back into the form designer I get an error:

Warning 1 Could not find type 'MaxDashBoard.MaxDashboard'. 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. 0 0

MaxDashboard is the name of my control.

Note that the control is referenced, the control dll file is where it
should be, the reference is correct, it has been built,the project compiles
and runs fine.

If I delete the reference and reset it, I still get the error. The only
way to not get the error is delete the form, add a new form, and then add
the contol to the form. Then, until I run the project or exit VS, I can go
to the design view and all is fine.

In looking tat the windows form projet's porperties on the references tab,
all is correct, the owner drawn control's dll is referenced and correct.

Any ideas?

Thanks,
kpg
 
Reply With Quote
 
 
 
 
kpg
Guest
Posts: n/a
 
      2nd Apr 2010
I found a solution but I do not understand why.

I changed the namesapce of my user control to something else. Now
everything works fine. The old namespace was MaxDashBoard, the same
as the name of the control, I changed it to something different, and now it
works.

whatever, I'm happy.

kpg
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Designer can't display inherited form Olaf Rabbachin Microsoft VB .NET 0 11th Sep 2008 11:11 AM
Re: Designer can't display inherited form Jack Jackson Microsoft VB .NET 0 9th Sep 2008 06:37 PM
VS2005 - Wont display PNG Files in designer Just Me Microsoft ASP .NET 1 14th Jan 2007 06:51 PM
VS2005 Designer does NOT display asp:panels!! Why? Rob Dob Microsoft ASP .NET 8 7th Dec 2005 06:05 AM
Images don't display in designer =?Utf-8?B?SmVydW5hbXVjaw==?= Microsoft Frontpage 11 10th Jan 2005 02:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:20 AM.