C# Programming
04-08-2009, 11:23 AM
Hi programmers,
I have created a simple Windows application with a text box, a Browse button and a Delete button. I have also added an OpenFile Dialog control, such that whenever the user clicks the browse button, the Open File Dialog box is displayed. Now I want that whenever the user selects any file from the Dialog box and clicks on the Delete button, the file path must be copied to the following code of a Console Application, I have created earlier: //Code
{
System.IO.File.Delete("FilePathHere");
}
How can I do that? Please help.
Your help will be appreciated,
Rajdeep.NET
I have created a simple Windows application with a text box, a Browse button and a Delete button. I have also added an OpenFile Dialog control, such that whenever the user clicks the browse button, the Open File Dialog box is displayed. Now I want that whenever the user selects any file from the Dialog box and clicks on the Delete button, the file path must be copied to the following code of a Console Application, I have created earlier: //Code
{
System.IO.File.Delete("FilePathHere");
}
How can I do that? Please help.
Your help will be appreciated,
Rajdeep.NET