I have a little difficulty in completing this simple program:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace Find_directories
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void txtbox_find_TextChanged(object sender, EventArgs e)
{
}
private void button_browse_Click(object sender, EventArgs e)
{
String v = txtbox_find.Text;
System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo()
{
FileName = @"c:\" + v,
UseShellExecute = true,
Verb = "open"
});
}
}
}
Currently the application is only opening the directories that are contained in c: root, but what i want is to look in the directory c: and open with the explorer the directory / subdirectory inserted into the textbox (txtbox_find).
Example: I put in the textbox "drivers" click on the browse button and the application searches and opens with explorer that folder.