By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,774 Members | 1,388 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,774 IT Pros & Developers. It's quick & easy.

Problem Inheriting UserControl

P: n/a
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!
Feb 4 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
--
http://www.sturmnet.org/blog
Feb 12 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.