OpenFilePanel and FolderBrowsePanel

Description

OpenFilePanel, FolderBrowsePanel
 



OpenFilePanel and FolderBrowsePanel are 2 new controls added to WinForms Controls Library released in Version 1.4.0 onward. This control is a combination of file / folder select dialog and textbox which allow user to select file / folder by either one of the following method:
  • Select file / folder from open file dialog / folder browse dialog.
  • Enter file / folder path into text box.
  • Drag and drop file / folder from Window Explorer.

Motivation

These controls is created to simplify GUI design in Windows Forms application where file / folder select is widely use in each project. With this control, it eliminates the need to rewrite / copy the same piece of code again and again. Moreover, all projects that utilize this controls will get instant upgrade in future with new released assemblies without recompilation.

Usage

In general, both of this controls is ready to work once you dropped in on the Form.
Some additional touch will make it even better.
  • Description of control is accessible from Text property.
  • Subscribe to TextChanged event to get notify when the content of text box changed.
  • Get selected directory from SelectedPath property. -- FolderBrowsePanel
  • Get selected file from SelectedFile property. -- OpenFilePanel

OpenFilePanel

Additional properties for OpenFilePanel which direct link to OpenFileDialog:
  • FileFilter = OpenFileDialog.Filter.
  • VerifyFileName = OpenFileDialog.CheckFileExists
  • VerifyPath = OpenFileDialog.CheckPathExists
 

 

Popular posts from this blog

(AGauge) WinForms Gauge Control - Discontinued

C# DSP Simulation - DSP Lab

WinForms Controls