I have the following problem with String.Replace:
string str = "0˄0";
str = str.Replace("˄", "&&");
when I print out str, it will be “0&0” instead of “0&&0”. To get “0&&0”, I have to write
str = str.Replace("˄", "&&&&");
Why is that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You may want to check out this post:
http://moiashvin-tech.blogspot.com/2008/05/escape-ampersand-character-in-c.html
Labels are handled differently in WinForms. You should be able to do as the post suggests and set the UseMnemonic property to false, see if that works.