Solved

VB.net TreeView checkboxes too close to node image

Posted on 2014-12-29
2
412 Views
Last Modified: 2014-12-30
Hi

I have TreeView in my VB.net project where I set the CheckBoxes to True to facilitate the selection of multiple
nodes. As shown in the image the checkboxes are too close to the node images. How can I space them out a little more?

1
0
Comment
Question by:murbro
2 Comments
 
LVL 24

Accepted Solution

by:
Bitsqueezer earned 500 total points
ID: 40523260
Hi,

as far as I know there is no possibility to configure the distance of the checkboxes in Windows Forms. You only have two possibilities: If you use WPF instead you can create controls on your own by assembling the elements, but that would mean to redesign the complete application and a lot of additional programming to create the TreeView logic on your own.
Another workaround could be to redesign your icons so that the graphic itself contains enough free space that it would look like as if the checkboxes would have more space between them and the icon.

Cheers,

Christian
0
 

Author Closing Comment

by:murbro
ID: 40523452
Thanks very much for the help
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

696 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