With VB.NET, adding a button to each node in a treeview

Posted on 2006-04-05
Medium Priority
Last Modified: 2006-11-18
Is it possible to add a button in each node of a treeview next to the text or the display picture?  This is needed to eliminate the need to right click and display a menu or some other function.
Question by:ddepuemd
  • 2

Expert Comment

ID: 16380098

you can add a checkbox to your treeview nodes instead of button which comes as a property of .net treeview control and wontbe much of a hastle either.

now based upon the selection/de-selection of these check boxes you can call any method you like.

if you wish i can also guide with some code to help you out on this.


Author Comment

ID: 16383085
I have my treeview populated with checkboxes already.  Is there a way to also add a button?
LVL 25

Accepted Solution

SStory earned 500 total points
ID: 16386453
I don't think you can do it, at least in 2003, because I don't see any way to override the paint event in the TreeNode class, which is the only way I could think of doing this.  This would not be a trivial task even if it were doable.

Author Comment

ID: 16392568
ok, can I have my points back please?

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Introduction to Processes

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question