944,052 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 5510
  • C# RSS
Aug 30th, 2005
0

Textbox quotes and send

Expand Post »
ok, i need to be able to typ in one text box hit a button and the same text appear in the second text box. bu this time with quotes around it. Is this possible.
Similar Threads
Team Colleague
Reputation Points: 84
Solved Threads: 99
<Insert title here>
tayspen is offline Offline
1,542 posts
since Jul 2005
Aug 31st, 2005
0

Re: Textbox quotes and send

tayspen,

Please, please, please - give your messages some careful review and thought before you post them. I'm asking very nicely: use proper spelling, punctuation, grammar, and capitilization. I hope you like Daniweb and stay around for a long time, but you'll find it much easier if you adopt a more professional posting style. Re-read and correct your messages before hitting the button! Otherwise, I'm afraid people might start to ignore you, which can be very frustrating.

Try this:

C# Syntax (Toggle Plain Text)
  1. textBox2.Text = "\"" + textBox1.Text + "\"";

The backslash is the "escape" character, sometimes called the "literal" character, and allows you to specifiy characters in a string that are otherwise reserved. Since it precedes the double-quote mark, it's saying, "I wish to include a double-quote in this string".
Team Colleague
Reputation Points: 227
Solved Threads: 37
Made Her Cry
tgreer is offline Offline
1,697 posts
since Dec 2004
Aug 31st, 2005
0

Re: Textbox quotes and send

Quote originally posted by tgreer ...
tayspen,

Please, please, please - give your messages some careful review and thought before you post them. I'm asking very nicely: use proper spelling, punctuation, grammar, and capitilization. I hope you like Daniweb and stay around for a long time, but you'll find it much easier if you adopt a more professional posting style. Re-read and correct your messages before hitting the button! Otherwise, I'm afraid people might start to ignore you, which can be very frustrating.

Try this:

C# Syntax (Toggle Plain Text)
  1. textBox2.Text = "\"" + textBox1.Text + "\"";

The backslash is the "escape" character, sometimes called the "literal" character, and allows you to specifiy characters in a string that are otherwise reserved. Since it precedes the double-quote mark, it's saying, "I wish to include a double-quote in this string".
Thank you, that really helped me out. I will make sure i use proper spelling and grammar. Thanks again!

-T
Team Colleague
Reputation Points: 84
Solved Threads: 99
<Insert title here>
tayspen is offline Offline
1,542 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: Converting Images Please Help
Next Thread in C# Forum Timeline: Please help me find problem in code :)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC