#vbcode
Explore tagged Tumblr posts
Text
I think my favorite thing about this is that derek fucked up the vbcode for his sig
felt a little silly and wanted to make new character bios for my neopets
5K notes
·
View notes
Text
Design TreeView as FilesExplorer with Drives and Folders Using VB.Net
Here you can find Simple Tips to Create or Design TreeView as FileExplorer with showing Drives and related Folders and related files. SKOtechLearn Describe this process in VB Code and C# code in VB.Net.
Design Listview as File Explorer with Showing Icons and Details.
You simply Get Following Point.
Show Drives with Folders and File in TreeView in VB.Net (VB, C#)
Get TreeView Selected Node Path in Label VB.Net (VB, C#)

if you want to show Drives in TreeView simply write following Code:
VB.Net :
Private Sub ExplorerBtn_Click(sender As Object, e As EventArgs) 'Clear TreeView MytrView1.Nodes.Clear() 'Loop For Get Drives For Each myDrives As System.IO.DriveInfo In System.IO.DriveInfo.GetDrives() Dim myDrivesNode As TreeNode = MytrView1.Nodes.Add(mydrives.Name) 'Adding "Expand" string is use for Add Expand "[+]" option on Drives myDrivesNode.Nodes.Add("Expand") Next End Sub
C# :
private void ExplorerBtn_Click(object sender, EventArgs e) { //Clear TreeView MytrView1.Nodes.Clear(); //Loop For Get Drives foreach (System.IO.DriveInfo myDrives in System.IO.DriveInfo.GetDrives()) { TreeNode myDrivesNode = MytrView1.Nodes.Add(myDrives.Name); //Adding "Expand" string is use for Add Expand "[+]" option on Drives myDrivesNode.Nodes.Add("Expand"); } }
And many more thing you can Find in TreeView As FileExplorer.
You can also Find how to Get Selected Node Path in label Using VB.Net and C# code.

0 notes