如何在包括动态文本框控件的窗体控件上应用动态tabindexing [英] How to apply dynamic tabindexing on form controls including dyanmic textbox controls
本文介绍了如何在包括动态文本框控件的窗体控件上应用动态tabindexing的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在包括动态控件在内的aspx表单控件中应用制表符,因此如何从页面后面的代码动态地应用tabindex.
谢谢
I want to apply tabbing in aspx form controls including dynamic controls ,so how can i apply tabindex dynamicly from code behind page.
Thanks
推荐答案
private void button1_Click(object sender, EventArgs e)
{
TextBox tx = new TextBox();
tx.Width = 150;
tx.Height = 20;
tx.Name = "textbox1";
tx.TabIndex = 1;
tx.Location = new Point(50, 10);
this.Controls.Add(tx);
}
这篇关于如何在包括动态文本框控件的窗体控件上应用动态tabindexing的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文