A user control from a user control ...

Posted by jmls on 31-Jul-2008 13:04

Bear with me on this:

In the code I posted on the thread "OMG User controls simply rock" (http://www.psdn.com/library/thread.jspa?threadID=11348&tstart=0) I showed how a basic data-driven combo can be dropped onto a new form.

I was thinking that this behavior is what Smart Objects should have been about. Now, what I was wanting to do was to create a basic crud toolbar (New / Edit / Delete / Find / Print).

Then, I wanted to create another user control that would use the crud toolbar as it's base. What would be the best way to go about this ?

a) Create another user control with extra buttons and have that available in the toolbox

b) create a class that inherits the toolbar but doesn't have any visualizations (eeew)

I didn't like a for a very simple reason - forms on forms on forms - and I don't know what the performance would be like

Now, can I do (b) but add it to the toolbox as a visual control ?

I wanted to see if there was a resounding consensus before I went away to experiment.

All Replies

This thread is closed