如何鍵盤按下backsapce觸發事件點擊某按鈕?
-
2012年3月10日 下午 06:04
private: System::Void formkeyup(System::Object^ sender, System::Windows::Forms::KeyEventArgs^ e) { if(e->KeyCode==Keys::Back) { //以下這段要怎麼改才合適呢? this->DoubleClick+=gcnew System::EventHandler(this,&Form1::Bckspace);} } }
- 已編輯 宇若彎彎 2012年3月10日 下午 06:05
所有回覆
-
2012年3月11日 上午 01:28
-
2012年3月11日 上午 04:09
可否有C++的做法呢? (學校規定不能用C#...)
而且是需要按下鍵盤的←Backspace做到觸發自己寫的
private: System::Void formkeyup(System::Object^ sender, System::Windows::Forms::KeyEventArgs^ e)
事件呢?
-
2012年3月11日 上午 04:15
private: System::Void formkeyup(System::Object^ sender,System::Windows::Forms::KeyEventArgs^ e) { if(e->KeyCode==Keys::Back){this->Bckspace(sender,e);} }剛剛研究出來了! 這樣打可以達到我的要求,可是不知道合不合法?- 已標示為解答 宇若彎彎 2012年3月11日 上午 04:15

