使用字符串构建器类在c#中创建数据并将数据写入html标签 [英] creating and writing data to the html label tag in c# using string builder class

查看:49
本文介绍了使用字符串构建器类在c#中创建数据并将数据写入html标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在Windows应用程序上工作,我有一个要求.

我正在使用C#中的字符串生成器类创建html文件.
我需要的是:-

我想创建一个标签,并想为该标签分配一些文本.

救救我,

问候,
Nagaraju.N

Hi
I am working on windows applications and i have a requirement that.

I am creating html file using string builder class in c#.
what i need is:-

i want to create a label and i want to assign some text to the label.

Help me,

Regards,
Nagaraju.N

推荐答案

Label lblCount = new Label();
this.lblCount.Text = " Your text ";
this.lblCount.Location = new System.Drawing.Point(55, 160);
this.lblCount.Size = new System.Drawing.Size(65, 15);
this.Controls.Add(lblCount);


这篇关于使用字符串构建器类在c#中创建数据并将数据写入html标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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