[HELP]Remove C:\ from C:\Test.txt in filename (Openfiledialog)

Posts 12 of 2 · Page 1 of 1
[HELP]Remove C:\ from C:\Test.txt in filename (Openfiledialog)
When using a OpenFileDialog, I pick a .txt file to edit it, but when the file filename shows on Label1, it says:
Code:
C:\Documents and settings\test.txt
How do I remove the
Code:
C:\Documents and settings\
so it only says
Code:
Test.txt
??
Easy way:

If your code is:
Code:
Label1.Text = Open.Filename
Then try this:
Code:
Label1.text = Open.SafeFileName.ToString
Post if you need more help

Thanks if helped
Posts 12 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?