473,769 Members | 5,205 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem Inheriting UserControl

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,bu t 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.ColorMix er' 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
1 1742
Hello kan,
Above process completes successfully,bu t 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1486
by: Charles Law | last post by:
I have a base class - ComponentBase - that inherits from UserControl. My class implements IComponentBase, which defines a minimal set of core properties and methods. All my other components inherit from ComponentBase. I have defined IComponentBase in a common assembly so that my other projects reference this rather than the (large) library that contains the component implementation.
7
3803
by: Alon | last post by:
Hi, I'm making my own control which holds some buttons ant textboxes and also has a panel control. in design time i want to drop another controls into the panel that is in my usercontrol. the problem is that the added controls are added to the usercontrol and not to the panel... 10X,
4
1199
by: elziko | last post by:
I would like to do the following: Create a class that inherits from a usercontrol. Then add a control to the designer Call this new class ClassA. Many controls I need will start off like this so I'd like to create all controls form now on from this base control. So, for example, I inherit from this base control and add the further controls required to form this part of my UI. Call this ClassB
3
1142
by: guy | last post by:
I have a problem with a class hierarchy. The inheriting and inherited class are in different solutions. In the base class, (which inherits from System.Windows.Forms.UserControl) i have a method Test, see below, and in the class which inherits from it i have a call to a method, Testx, which in turn calls Test.
3
1527
by: YYZ | last post by:
I swear I've done my research, and now I was just hoping someone could explain this to me. I've got a base class (usercontrol) that I am using just as an interface. Meaning, I've defined several MustOverride subs in there, and also a public property. I'm going to inherit a bunch of usercontrols from this one superclass (terminology correct?) and then they all have to make sure they can respond to that set of functions that I've...
4
6738
by: DanG | last post by:
Howdy, On past .NET projects, I only had System.Web.UI.Page forms. One application needed a set of functions to do processing against the Page, Session and Request objects associated with the current Form. I handled this by making a new class (BasePage) which inherits from System.Web.UI.Page. Each form would then inherit from BasePage rather than System.Web.UI.Page. I am now on a project that has both System.Web.UI.Page and
2
2981
by: =?Utf-8?B?UmVuYXVkIExhbmdpcw==?= | last post by:
Hello, I have an asp.net web page (say page.aspx) which derives from a custom base page object (CustomPage : BasePage : System.Web.UI.Page) Which has a method called DoSomething(params). My web page contains a UserControl (say Control.ascx). In the control class, i want to call the DoSomething method. I cannot use type cast since in fact the base class Page structure is a little more complex (see bottom of post). Hence i cannot do:
2
1295
by: Charlie Brown | last post by:
I have two classes, one that inherits from UserControl called Base. I have a second class that inherits from Base. I do not want to expose a lot of the properties of usercontrol beyond the Base control. For example, lets say I want every control that inherits from Base to have a RED background and not be able to change it. Currently, backgroundcolor is available in the designer as a color choice. Can I change the scope of something to...
0
938
by: SpaceMarine | last post by:
hello, i am working on a web application w/ UserControls. some of my controls use the same functionality (an Event they all raise) so it seemed sensible to place them into a custom base class, and have my UserControls inherit it. problem is, when i do this the im no longer able to raise the event in deriving UserControls. it fails to compile, saying:
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9866
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3967
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3570
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.