Drag FileSystemWatcher control in your form from toolbox and add the events for created,deletion and renaming.Ex:-#region Designer viewthis.fileSystemWatcher.EnableRaisingEvents = true;this.fileSystemWatcher.IncludeSubdirectories = true;this.fileSystemWatcher.SynchronizingObject = this;this.fileSystemWatcher.Created += new System.IO.FileSystemEventHandler(this.fileSystemWatcher_Created);this.fileSystemWatcher.Deleted...
String Functionality of C# (Play with strings)
1:- Convert string to LowerCase public static String Lower(String constantString) { return constantString.ToLower(); }2:-Convert String to UpperCase public static String Upper(String constantString) { return constantString.ToUpper(); }3:- Convert String to proper case public static String PCase(String constantString) { String strProper=constantString.Substring(0,1).ToUpper();...
Create customize OpenFileDialogBox and SaveFileDialogBox using shell
%5B1%5D.png)
The Open dialog box lets the user specify the drive, directory, and the name of a file or set of files to open.The Save As dialog box lets the user specify the drive, directory, and name of a file to save. Explorer-style Open and Save As dialog...
Get CSIDL Code (System Index of Directories)
const int CSIDL_DESKTOP = 0x0000; // const int CSIDL_INTERNET = 0x0001; // Internet Explorer (icon on desktop)const int CSIDL_PROGRAMS = 0x0002; // Start Menu\Programsconst int CSIDL_CONTROLS = 0x0003; // My Computer\Control Panelconst int CSIDL_PRINTERS...