J
jpierson
Hi,
I'm having a few problems with the replace function for replacing
characters in a textbox.
"C:\" is the string i am tryin to remove ,with it a command I am
sending does not work.
txtS_Filename.Text.Replace("C:\", "");
The compiler has a problem with the newline slash character but even
when I take the slash out c: is still not replaced.
I'm using the OpenFileDialog class
txtS_Filename.Text = fdlg.FileName ;
This shouldnt make any difference but maybe it does.
Any help appreciated
James
I'm having a few problems with the replace function for replacing
characters in a textbox.
"C:\" is the string i am tryin to remove ,with it a command I am
sending does not work.
txtS_Filename.Text.Replace("C:\", "");
The compiler has a problem with the newline slash character but even
when I take the slash out c: is still not replaced.
I'm using the OpenFileDialog class
txtS_Filename.Text = fdlg.FileName ;
This shouldnt make any difference but maybe it does.
Any help appreciated
James