Easy way:
If your code is:
Then try this:Code:Label1.Text = Open.Filename
Post if you need more helpCode:Label1.text = Open.SafeFileName.ToString
Thanks if helped
When using a OpenFileDialog, I pick a .txt file to edit it, but when the file filename shows on Label1, it says:
How do I remove theCode:C:\Documents and settings\test.txt
so it only saysCode:C:\Documents and settings\
??Code:Test.txt
Easy way:
If your code is:
Then try this:Code:Label1.Text = Open.Filename
Post if you need more helpCode:Label1.text = Open.SafeFileName.ToString
Thanks if helped
Last edited by Erinador; 12-14-2009 at 03:55 PM.
Pixie (12-14-2009)