如何打印出引号. [英] How to print out a Quotation mark.

查看:212
本文介绍了如何打印出引号.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道如何在Visual Basic 2008中的文本框中键入引号.

像这样...

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]"



必须替换<和>用于[和].

那是一个不好的例子,因为我已经为我工作了……但是喜欢如何在href =之后获取报价,以显示在文本框中.



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.

推荐答案

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


您在字符串中键入两个引号得到一个引号.此外,仅供参考,您输入& lt; 来创建< & gt; 创建> .不过,代码项目"编辑器实际上将为您解决这一问题.您只需选中在粘贴时编码HTML标记"复选框(位于编辑器下方).


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).


这篇关于如何打印出引号.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆