标签 [英] Label

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

问题描述

如何在标签中显示字符串? Label1.Text =" abc" .I曾使用过它,但它表示null引用未设置为实例。 string s =" abc" ;; Label1.Text = s;


但是它给出了同样的错误。

解决方案

< blockquote>它应该是完美的,标签是否正确初始化,删除当前标签添加新标签,再试一次。


How to show a string into a label? Label1.Text="abc".I had used that,but it said null reference not set to an instance. string s="abc";Label1.Text=s;

But it gives same error.

解决方案

It should perfectly, is the label getting initialized properly, delete the current label add a new one, try again.


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

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