)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to achieve Windows Explorer like appearance using Syncfusion controls?

Platform: WinForms |
Control: NavigationView |
Published Date: May 11, 2016 |
Last Revised Date: January 7, 2020

Appearance

Windows Explorer like appearance can be achieved by using Syncfusion control named NavigationView that helps to showcase Address Bar appearance and by using controls named TreeView and ListView.

C#

// To get directories and files of the System
DirectoryInfo dir = new DirectoryInfo("C:\\");
foreach (DirectoryInfo dire in dir.GetDirectories())
{
    TreeNode tree = new TreeNode(dire.Name);
    e.Node.Nodes.Add(tree);
}
foreach (FileInfo f in dir.GetFiles())
{
    TreeNode t = new TreeNode(f.Name);
    e.Node.Nodes.Add(t);
}
 

VB

'To get directories and files of the System
Dim dir As New DirectoryInfo("C:\")
For Each dire As DirectoryInfo In dir.GetDirectories()
    Dim tree As New TreeNode(dire.Name)
    e.Node.Nodes.Add(tree)
Next dire
For Each f As FileInfo In dir.GetFiles()
    Dim t As New TreeNode(f.Name)
    e.Node.Nodes.Add(t)      
 

 

Windows explorer like appearance using syncfusion control with image

Figure 1. Windows Explorer like appearance using Syncfusion control with image.

Samples:

C#: How to achieve Windows Explorer like appearance using Syncfusion controls?

VB: How to achieve Windows Explorer like appearance using Syncfusion controls?

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon