Mega Code Archive

 
Categories / C# / Development Class
 

Browse a folder

using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.Windows.Forms; using System.Text.RegularExpressions; using System.IO; using System.Drawing.Imaging; using System.Reflection; namespace SuchSofts.OpenImage.Lib.Operation {     internal class CommonOperations     {         public static void Browse(string folder)         {             try             {                 Process.Start("explorer", folder);             }             catch (Exception ex)             {                 MessageBox.Show("An error occured while loading " + folder + "\nDetails: " + ex.Message, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);             }         }     } }