trant wrote:
>> The UserControl class is a lot like a Form, in the way it works in the
>> Designer. The main difference is that when compiled, it will then show
>> up in the Toolbox, from which you can drag the control to get a new
>> instance into a form, just like any other control type.
>
> Yes, this is exactly the way I am creating my custom Control. However the
> thing is the designer for it is nothing like the designer for a Form. It does
> not give me a window or panel to drag and drop other Controls into.
>
> If I drag something like a Panel from my Toolbox over to the designer area
> it just drops an icon representing the Panel, it does not actually render the
> panel and allow me to resize it like a Form Designer does. [...]
Assuming you are actually doing exactly what I said, it normally works
fine, just as you seem to expect it to.
Given that assmption, then unfortunately (for you, not me

) I have
not run into the problem you describe, so nothing comes to mind with
respect to fixing it. If you can post a concise-but-complete code
example that can successfully reproduce the same problem on someone
else's computer, then there's probably something that got messed up
about the code at some point.
If having the full complement of .cs files for the project isn't
sufficient for someone else, like me, to reproduce the problem, then you
probably have some kind of problem with your Visual Studio installation.
Unfortunately, the easiest way to fix that sort of thing is to
uninstall and reinstall from scratch (and depending on how messed up
things are, sometimes that won't even work).
> In my particular case, I want to have a panel which has a large area on the
> right occupied by a ListView and a panel on the left with several drop down
> controls inside. These drop down controls are used for interacting with data
> from the List View. Altogether these Controls in this one panel act as one
> single component which I would need multiple instances of across my
> application. So I was hoping I could create some Control that wraps this all
> up in one package making it easy to just drag n drop wherever I need it.
>
> Neither "Control" nor "Component" seem to allow this. They allow me to drag
> n drop controls from my Toolbox but they dont allow me to position them in in
> a form-like view.
If the base class of your custom control is "Control" or "Component",
then you have not inserted a new UserControl sub-class into your project
in the way that I described, and that would almost certainly lead to
exactly the behavior you are describing.
So before you start fiddling around with your Visual Studio
installation, or putting together and posting a code example, you should
double-check to make sure that you are really inserting a "User Control"
into your project, as opposed to a "Custom Control". Note that if you
right-click on the project in the Solution Explorer, under the "Add..."
menu item, there is a "User Control..." item that is a shortcut for
going through the whole template selection dialog.
Pete