Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I need to know how to be able to type a quotation mark into a text box in Visual Basic 2008.

like so...

TextBox1.Text = "[a href=""]LINK[/a]"


Had to substitute the < and > for [ and ].

That is a bad example, because I've already gotten that to work for me... but like how to get the Quotes after the href= to show up in the textbox.
Posted
Updated 6-Dec-09 16:32pm
v8

1 solution

VB
TextBox1.Text = "<a href=""someUrl.com"">LinkText</a>"

You type two quotes in a string to get one quote. Also, FYI, you type &lt; to make a < and &gt; to make a >. The Code Project editor will actually take care of that for you, though. You just check the "Encode HTML tags when pasting" checkbox (located just below the editor).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900