Hi Guys,
I am trying to display a selected file name by user(using OpenFileDialog class and FileName property) as
if (dlgOpen.ShowDialog() == DialogResult.OK)
{
txtFileName.Text = dlgOpen.FileName;
}
but the problem is this return all path info which I do not need! Can you please let me know How I can get rid of the path and just retrieve or display the file name only
Thanks for your time, in advanced.