Problem Inheriting UserControl

G

Guest

hi,
Consider i have built a UserControl say 'ColorMixer' in proj
'Step1'(Windows Control Proj).
Now when create another proj 'Step2' as Windows Control and try adding
'ColorMixer' as inherited ctrl to create new 'ColorMixerX' ,following problem
arises.
Above process completes successfully,but when i try to bring up the
Designer for newly created 'ColorMixerX' the Designer show following err msg :

"An error occured while loading the document. Fix the error, and then
try loading the document again. The error message follows:
The designer could not be shown for this file because none of the
classes within it can be designed. The designer inspected the
following classes in the file:
ColorMixerX -- the base class 'Step1.ColorMixer' could not
be loaded. Ensure the assembly has been referenced or built if it
is part of the project."

I am using VS2002. Is this the know bug? coz i have encountered the
same problem when inheriting one Windows Form from another!
 
O

Oliver Sturm

Hello kan,
Above process completes successfully,but when i try to bring up the
Designer for newly created 'ColorMixerX' the Designer show following err
msg :

Have you tried building the project? In other words, are you sure you have
added a reference to the Step1 project? You must have that reference,
otherwise the first control you have created won't be found. If you don't
have it, you should also see the build process failing with an error
message.
I am using VS2002. Is this the know bug?

I'm sure I'm not just speaking for myself when I say that I really can't
remember. It might be a good idea for you to use a more current version of
Visual Studio - VS 2005 would be best -, as people will not be able to
help you easily in such cases when you're using a version that they
(speaking for myself here, of course) haven't touched in years. Just a
hint - maybe your problem goes away with the reference I mention above.


Oliver Sturm
 

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