我是有几个tabpage,设置了一个textbox的tabindex为0,可是每次打开的时候都是焦点在tabpage上,怎么能让它在我设置的textbox上呢
解决方案 »
- C# 打印排版問題
- 关于ATM取款机的转账代码怎么写?
- compilation 的 assemblies
- C#序列化问题
- 简单的问题,求教!
- This event supports the .NET Framework infrastructure and is not intended to be used directly from your code
- 读取Excel的方法好象有点问题
- 敢问大虾,如何在windows应用程序中访问ASP .net工程中的Application全局变量呢?
- 很急的问题,希望大家能提供经验给我,谢谢了
- visual studio2005 可以在苹果MAC OSX 上运行吗?
- 从aspx页面在导入到excel中。
- 怎么禁止鼠标不能点击div里面的任何元素
public Form3()
{
InitializeComponent();
this.Activated += new EventHandler(Form3_Activated);
} void Form3_Activated(object sender, EventArgs e)
{
this.textBox1.Focus();
}
“控件名称.Focus();”放在onLoad()事件里。