We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now


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

ddepuemd asked
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.
Watch Question


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.



I have my treeview populated with checkboxes already.  Is there a way to also add a button?
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.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


ok, can I have my points back please?
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.