Tuesday, December 11, 2007

How to get filename from FileOpenDialog

How to get filename from FileOpenDialog

Step 1

To get the name of file selected in your OpenFileDialog, we will create another Label and called it Label1. Then double click on your button and then use the following codes

Label1.Text = OpenFileDialog1.FileName

No comments: