Solved

VB.net TreeView checkboxes too close to node image

Posted on 2014-12-29
2
386 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Footer for each row on Gridview 2 21
No Data for DropDown List 2 26
vb.net class 3 17
SQL Count issue 24 16
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

803 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