2014-01-30 73 views

回答

0

我推測因爲你用這種方式調用它,vb6表單作爲一個單獨的進程運行?

不管你在調用它來捕獲它什麼時候關閉它,你能添加事件到任何進程嗎?

process.EnableRaisingEvents = true; 
process.Exited += (sender, e) => { /* do whatever you need to when it closes, i.e. remove the user control or close its parent form. */ }; 
相關問題