TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
John
NA
43
34.1k
Removing character from string
Jul 22 2013 1:02 PM
Hi All,
I'm trying to remove 2 characters at the beginning of a string but its not working.
this is the code:
if (preview.StartsWith("\\"))
{
preview.Remove(0, 2);
FileInfo prev2 = new FileInfo(preview);
}
so the string begins with "\\" which I want to get rid of. But despite the code above the string stays the same.
Cheers
Reply
Answers (
1
)
getting info for hyperlink clicked
getting multiple coordinates in picturebox1 and show them in