Click here to Skip to main content
15,899,124 members
Home / Discussions / C#
   

C#

 
QuestionRe: calling image Pin
jojoba201024-Jan-10 23:36
jojoba201024-Jan-10 23:36 
AnswerRe: calling image Pin
sanforjackass25-Jan-10 0:29
sanforjackass25-Jan-10 0:29 
QuestionWinservice installer issue Pin
Priya Prk24-Jan-10 22:11
Priya Prk24-Jan-10 22:11 
AnswerRe: Winservice installer issue Pin
#realJSOP25-Jan-10 0:01
professional#realJSOP25-Jan-10 0:01 
GeneralRe: Winservice installer issue Pin
Priya Prk25-Jan-10 0:05
Priya Prk25-Jan-10 0:05 
QuestionCursor change in WinForms - A generic error occurred in GDI + [modified] Pin
arturw8224-Jan-10 22:04
arturw8224-Jan-10 22:04 
QuestionHow would I go about adding an escape to a predefined string value ? Pin
tonyonlinux24-Jan-10 21:15
tonyonlinux24-Jan-10 21:15 
AnswerRe: How would I go about adding an escape to a predefined string value ? Pin
OriginalGriff24-Jan-10 21:37
mveOriginalGriff24-Jan-10 21:37 
You answered this yourself:

tonyonlinux wrote:
have a treeview and when I hit a title that has is something like this
Title = "Berenstains' B Book"

Obviously it has the ' in it and needs to be escaped



tonyonlinux wrote:
escaped = escaped.replace("'","\'");


Puttin the backslash in front of the quote provides the escape mechanism.

So your string becomes:

Title = "Berenstains\' B Book";

You can also use the atsign in front of the string:

Title = @"Berenstains' B Book";

All those who believe in psycho kinesis, raise my hand.

My Badger | [badger,badger,badger,badger...] 's gonna unleash hell on your ass. Badger | [badger,badger,badger,badger...] tastic!

AnswerRe: How would I go about adding an escape to a predefined string value ? Pin
Luc Pattyn24-Jan-10 22:11
sitebuilderLuc Pattyn24-Jan-10 22:11 
Questionmodified date Pin
Member 59031024-Jan-10 18:42
Member 59031024-Jan-10 18:42 
AnswerRe: modified date Pin
_Achilles_24-Jan-10 19:01
_Achilles_24-Jan-10 19:01 
AnswerRe: modified date Pin
Mycroft Holmes24-Jan-10 20:02
professionalMycroft Holmes24-Jan-10 20:02 
AnswerRe: modified date Pin
PIEBALDconsult25-Jan-10 4:25
mvePIEBALDconsult25-Jan-10 4:25 
QuestionC# tooltip [modified] Pin
jojoba201024-Jan-10 18:19
jojoba201024-Jan-10 18:19 
AnswerRe: C# tooltip Pin
sanforjackass24-Jan-10 19:04
sanforjackass24-Jan-10 19:04 
QuestionRe: C# tooltip Pin
jojoba201024-Jan-10 19:09
jojoba201024-Jan-10 19:09 
AnswerRe: C# tooltip Pin
sanforjackass24-Jan-10 19:13
sanforjackass24-Jan-10 19:13 
QuestionRe: C# tooltip Pin
jojoba201024-Jan-10 19:14
jojoba201024-Jan-10 19:14 
AnswerRe: C# tooltip Pin
sanforjackass24-Jan-10 19:24
sanforjackass24-Jan-10 19:24 
QuestionRe: C# tooltip Pin
jojoba201024-Jan-10 19:50
jojoba201024-Jan-10 19:50 
AnswerRe: C# tooltip Pin
Mycroft Holmes24-Jan-10 19:54
professionalMycroft Holmes24-Jan-10 19:54 
AnswerRe: C# tooltip Pin
sanforjackass24-Jan-10 20:01
sanforjackass24-Jan-10 20:01 
GeneralRe: C# tooltip Pin
Mycroft Holmes24-Jan-10 19:50
professionalMycroft Holmes24-Jan-10 19:50 
QuestionCan a Java application call a DotNet WCF service? Pin
ashishtango24-Jan-10 17:24
ashishtango24-Jan-10 17:24 
AnswerRe: Can a Java application call a DotNet WCF service? Pin
Abhinav S24-Jan-10 18:28
Abhinav S24-Jan-10 18:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.