Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发具有开发的窗口应用程序。表示其选项卡索引设置为 35 的网格,以及一个具有选项卡索引 1 的文本框,但是当页面加载时,选项卡会在网格的查找面板上停止。我想专注于文本框。我试图将重点放在加载事件上,但没有工作。
private void frmCustomer_Shown(object sender, EventArgs e) { txtCustomerName.BeginInvoke(new Action(() => { txtCustomerName.Select(); })); }