为500个动态文本框设置tabindex [英] setting tabindex for 500 dynamic text boxes

查看:93
本文介绍了为500个动态文本框设置tabindex的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好......
我在使用
时创建了500多个动态文本框

hi all....
i have created more than 500 dynamic text boxes while using

txtdynamic1.TabIndex = Convert.ToByte(integerinc + 1);



这里integerinc是一个整数变量,它每次增加1,然后使用Convert.ToByte方法最多占用252个整数值,此后它会移动以产生错误(对于无符号字节,值太大或太小).它需要0到255个值,所以我如何将制表符索引添加到其余文本框中,任何一个都可以帮助我


在此先感谢......



here integerinc is a integer variable it increase every time by one and Convert.ToByte method taking up to 252 integer value after that it move to produce an error like (Value was either too large or too small for an unsigned byte.) cause of byte it takes 0 to 255 values so how can i add tab index to remaining textboxes can any one please help me


thanks in advance......

推荐答案

我认为使用(short)进行强制转换是可行的……
i think cast with (short) is working......


开始使用...

Inseted of using...

Convert.ToByte(integerinc + 1);



试试这个...



try this...

Convert.ToInt(integerinc + 1);


这篇关于为500个动态文本框设置tabindex的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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