Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / December 2004

Tip: Looking for answers? Try searching our database.

How to add a user control inside a treeview control as a node

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sunil Joshi - 09 Dec 2004 10:25 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.