Advertisement

03.28.2008 at 01:14AM PDT, ID: 23276623
[x]
Attachment Details

Adding a derived usercontrol to a derived usercontrol

Asked by TiTANS_C in Visual Studio 2008, C# Programming Language, Microsoft Visual C#.Net

Tags: c#, visual studio 2008, Visual studio, windows forms.

Situation:
I created a usercontrol named ChronusUserControl. It's a basic usercontrol but with a validation function added to it.
I have a second usercontrol called ucUser which is derived from ChronusUserControl.
It has has an objectmember which can be accessed through a get and a set property.
No problems so far, I can drag the ucUser on a form and do everything I want with it.

In the next phase, I created a ChronusListboxUserControl which is derived from UserControl and contains a Listbox and the buttons search, add, delete. Everything is placed in a tablelayout.
I also created a derived usercontrol from ChronusListboxUserControl: ucUserListbox.

Problem:
I want to add the ucUser to a specific place in the tablelayout of ucUserListbox. But i just can't figure out how to do this. When I drag ucUser from the toolbox onto ucUserListbox it doesn't do anything.
In the designer I can see a lock but I don't know how to solve it.

Questions:
Is there a specific reason why I can't add a usercontrol to a usercontrol?
Why is ucUserListbox locked?
What is the best workaround?Start Free Trial
 
Loading Advertisement...
 
[+][-]03.28.2008 at 05:02AM PDT, ID: 21229565

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.28.2008 at 06:43AM PDT, ID: 21230291

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.28.2008 at 07:04AM PDT, ID: 21230472

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.28.2008 at 07:16AM PDT, ID: 21230566

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio 2008, C# Programming Language, Microsoft Visual C#.Net
Tags: c#, visual studio 2008, Visual studio, windows forms.
Sign Up Now!
Solution Provided By: TiTANS_C
Participating Experts: 1
Solution Grade: A
 
 
[+][-]03.28.2008 at 07:34AM PDT, ID: 21230762

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628