Basically i have a list of folder paths on XML File. I created a dataGrid View which reads this XML file and displays the list of folders in the XML into the data Grid View. Now I need to create a way where the user chooses a folder path from one of the list I have and the program will check if this folder exists on the computer being used.Is there a way to create this program?
Try Button with event handler for the click event and assuming that your input textbox is named textBoxForPath this should work:
private void Button1_Click(object sender, EventArgs e)
{
string path = this.textBoxForPath.Text;
if (File.Exists(path))
{
// Do Something
}
}
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments