标签显示问题 [英] Problem with Label Display

查看:74
本文介绍了标签显示问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究.netcf。

Iam working on .netcf.

我想逐行显示文本。因此,iam使用" \ n"标签中

I want to display text line by line.so, iam using "\n" in label

示例:

label1。 text =" name \\\
address\\\
phoneno \\\
state"。

label1.text="name\naddress\nphoneno\nstate".

但是,在查看时。它将逐行显示(闪烁)。而不是一次拍摄。

But , when viewing it. It will get display line by line(flickering). Instead of one shot.

如何避免逐行绘制。当使用\ n时。

How to avoid the line by line drawing . when \n is used.

推荐答案

 

Hi, 

使用escape charecter'\'。将代码行更改为

Use escape charecter '\'. change the line of code to

label1.text="name\\naddress\\nphoneno\\nstate".


这篇关于标签显示问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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