在运行时中创建复选框 [英] creating checkbox in the runtime

查看:68
本文介绍了在运行时中创建复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我有一个datareader,可以在运行时从中将数据填充到divs绘图中.
现在需要在运行时中使用它们创建复选框.
请帮忙...
感谢

Hi all
I have datareader that fills from it the data into divs drawing in the runtime.
now in need to create check box with them in the runtime .
Please help...
thanks

推荐答案

^ ]

尽情享受Google:thumbsup:
http://www.google.com/search?hl=en&biw=1024&bih=575&q=checkbox+create+on+the+fly+asp.net&aq=f&aqi=&aql=&oq=[^]

Enjoy Google:thumbsup:


希望 [ ^ ]可能会为您提供帮助.
Hope this[^] might help you.


CheckBox cb = new CheckBox();
this.Controls.Add(cb);
//您可以使用属性设置值
//从左,右位置
//高度,宽度
cb.Left = 50;
CheckBox cb = new CheckBox();
this.Controls.Add(cb);
//You can set the values using properties
//From left , right position
//Height , width
cb.Left = 50;


这篇关于在运行时中创建复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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