如何从Resources.resx在工具提示中显示换行 [英] How To DisplayNew Line in ToolTip from Resources.resx

查看:92
本文介绍了如何从Resources.resx在工具提示中显示换行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要在工具提示中显示新行.
消息位于一个Resources.resx文件中.
但是,以下方法不起作用:

Hi, I am going to display the new line in ToolTip.
The messages are in one Resources.resx file.
However, below ways are not work:

\n
\r\n
<code><br /></code>


谢谢.

推荐答案

请勿在resx文件中写入\ n或\ r \ n.不起作用.要在文本中输入换行符,只需在resx编辑器中按 Shift + Enter 即可.
Do not write \n or \r\n in your resx file. It will not work. To enter a new line char in your text just press Shift+Enter in your resx editor.


好!!! :rose:

在Resources.resx中,我尝试使用 Ctrl + Enter,Alt + Enter,Enter .它不起作用.幸运地看到您的评论( Shift + Enter :thumbsup:)
Excellent!!! :rose:

In the Resources.resx, I have tried with Ctrl + Enter, Alt + Enter, Enter. It doesn''t work. By luckly see your comment (Shift + Enter :thumbsup:)




其实你做不到.您不能进行换行工具提示.为此,您必须使用javascript工具提示.
Hi,

Actually you can not do it. you can not make a new line tooltip. for that you have to use javascript tool tip.


这篇关于如何从Resources.resx在工具提示中显示换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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