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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top