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