can you have buttons or LinkLabels in TreeNodes?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

is it possible (without too extreme of an effort) to have a Button or
LinkLabel added next to a TreeNode's label that the user can interact with?
 
It can be somewhat difficult, but you can try to simulate Link Labels
painting underlined text to the right of each treenode, and controlling
where the user clicks to perform some action. About painting underlined
text, see "SAMPLE: CustDTv Illustrates Custom Draw in a TreeView (Q248496)"
in the following article.

Customizing a Control's Appearance Using Custom Draw
http://msdn.microsoft.com/library/d...ellcc/platform/commctls/custdraw/custdraw.asp

--

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com
 
Back
Top