C# form 設置控件焦點

 private void ForFocus(object sender, PaintEventArgs e)
        {
              this.txtPwd.Focus();   控件名稱
        }

 

 

 

在form 事件中找到Paint   添加ForFocus

 

 

更多資料 請看 /

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章