Skip to content

BreakShoot/CSharpFileExplorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSharpFileExplorer

An implementable file explorer with remarkable capability

How to Setup

1) Add a reference to the tool through the toolbox. It will show up named as "FileExplorer"

Step 1

2) Drag the tool onto your form

Step 2

3) On your Form_Load event, set up a few functions such as

Step 3

File Filtering

this.fileExplorer1.FilteringExtensions = true;
this.fileExplorer1.Extensions.AddRange( new List<string>() { ".txt", ".lua"} );

Saving

ToolStripItem tool = new ToolStripButton("Save");
this.fileExplorer1.NodeContextMenuStrip.Items.Insert(1, tool);

tool.Click += (q, p) =>
{
  File.WriteAllText(this.fileExplorer1.SelectedNode.Name, this.fastColoredTextBox1.Text);
};

File Selection Action

this.fileExplorer1.SelectionAction += (q, p) =>
{
    this.fastColoredTextBox1.Text = this.fileExplorer1.ReadSelectedNode();
};

Options

  • Utilize the BookMarkColor property to set the color for bookmarks
  • If you wish to only witness files of a certain extension, add to the Extensions list, and set FilteringExtensions to true
  • If you wish to remove/show the file information on file hover, set ShowFileInfoOnHover
  • Drag and drop files/folders to move them
  • Create new folders/files
  • Delete folders/files
  • Show file/folder properties

Example Properties


Pictures

Pic1 Pic2 Pic3


How to Use?

Utilize the PopulateView(string folderPath) method to fill the listBox, this is automatically utilized when you right click and select "Add Directory."

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages