I am having one user control (containing two combobox and one button) , I
want to add
this control as a node in a treeview control , to be more precise now I want
my user control
acting a node in the treeview control instead of treenode .
we can not extend treenode class because if I do this then I can not add
Combobox and all to my control class .
we can not inherit from treenode collection class as it is haivng private
constructor.
so if I want my control as a node in the treeview control then we can extend
treeview class
and in that now I should have myControl's collection class which will
ADD,REMOVE my control from a treeview control.
How should I achieve this ?
Thanks in advance
Sunil Joshi.

Signature
---------------------------------------------------------------------------------------
Anything can be sacrificed for the friendship , friendship cannot be
sacrificed for anything.
Ed Kaim - 13 Dec 2004 15:00 GMT
I don't think it's possible to do this. The TreeNode class is basically a
wrapper for a label that has support for children (and an image or
checkbox). If the TreeNode were directly derived from Control, you'd
probably be able to subclass it, although that isn't even an option for you
from what you say.
>I am having one user control (containing two combobox and one button) , I
> want to add
[quoted text clipped - 19 lines]
>
> Sunil Joshi.