|
-
May 1st, 2012, 10:08 PM
#1
Text Replacing code
Hello,
I'm trying to figure out how to replace characters with a word.
Like this d would be delta, D would be Delta.
I have been trying strings, streambuilder, with no luck.
Code:
private void button1_Click(object sender, EventArgs e)
{
string strValue = "dD";
string strResult0 = strValue.Replace("D", "Delta", "d", "delta");
MessageBox.Show(strResult0);
Any suggestions would be great.
Thanks,
Mike
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|