treeview

Display Directory Structure using TreeView in VB.NET

Today in VB.NET, i will teach you on how to create a program that loads and displays the directory structure of C using the TreeView control in VB.NET. So, now let's start this tutorial! 1. Let's start with creating a Windows Form Application in Visual Basic for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application. 2. Next, add only one TreeView1 named TreeView11 to display the contents of C directory structure.

Drag/Drop and Copy Control in a TreeView Using Visual Basic 2008

In this tutorial, I will show you how to drag/drop and copy in a Treeview by using Visual Basic 2008. I made this to show you not only a PictureBox or a TextBox can be drag and drop but also a treeview. Let’s begin: Open Visual Basic 2008, create a new Windows Application and drag the two Treeview in the Form. Name it “trview_left” and “trview_right”. first form After that, click the two Treeviews and go to the properties.

Populating Treeview with N- Level Tree Structure Dynamically in VB.Net

From last two weeks I was facing a problem regarding populating a treeview on a vb .net form , with the data from a table which contains N level of child nodes. I searched but i couldnt find exact solution, anyways finally I was able to solve it using recursive function.... Here is the code... The database table has two fields one is AcCode and 2nd is Parent ID... Private Sub AddTreeNodes(ByRef tv

CheckBox Control with MySQL

Another source code on how to populate a CheckBox control with data, this time by using MySQL. In order to run this program you need to install the database included in the TreeView Control with MySQL. This program needs the Products table from the Northwind database which I ported to MySQL. Again the purpose of this code is to show you how to easily populate checkbox control with data. For more

TreeView Control with MySQL

While I was trying to convert TreeView Control to work with MySQL I encounter an error with concurrent connection using DataReader. The error message was “ There is already an open DataReader associated with this Connection which must be closed first”. Even the Microsoft KB does not help in solving this problem. The workaround on this problem is to create another connection to avoid this error