single quotes inside vb.net string

Jun 18 2012 7:26 AM
I need to display single quote inside a warning message in my application. I am expecting the string to be "Error User name should not have ' character". But application displays as "Error User name should not have \' character". I tried with Chr(39) also but it didnt work.

Answers (9)