[問題] .net 等待事件結束
看板C_and_CPP (C/C++)作者dagosun (little sunshine:))時間13年前 (2013/02/28 19:00)推噓0(0推 0噓 1→)留言1則, 1人參與討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC++ winform
問題(Question):
在一個button click事件裡面
執行到某一行後
要等待picturebox的click右鍵事件完成
再繼續執行
請問該如何撰寫呢?
程式碼(Code):(請善用置底文網頁, 記得排版)
private: System::Void button1_Click(System::Object^ sender,
System::EventArgs^ e) {
.....
.....
等待picturebox的click右鍵事件完成
繼續執行
...
}
private: System::Void pictureBox1_MouseClick(System::Object^ sender,
System::Windows::Forms::MouseEventArgs^ e) {
if(e->Button==System::Windows::Forms::MouseButtons::Right)
{
doneDraw = 1;
}
}
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.118.175.46
→
02/28 19:43, , 1F
02/28 19:43, 1F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章