以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]主窗口BeforeClose事件不执行?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=13859)

--  作者:dqlgood
--  发布时间:2011/10/29 17:16:00
--  [求助]主窗口BeforeClose事件不执行?

Dim sd As WinForm.DateTimePicker
Dim
ed As WinForm.DateTimePicker
sd = e.Form.Controls(
"StartDate")
ed = e.Form.Controls(
"EndDate")
If
sd.Value Is Nothing OrElse ed.Value Is Nothing Then
    MessageBox.Show(
"请输入起始日期和终止日期!","提示", MessageBoxButtons.OK ,MessageBoxIcon.Information)
    e.Cancel =
True
End
If

放在主窗口的BeforeClose事件中不执行如何处理?


--  作者:狐狸爸爸
--  发布时间:2011/10/29 19:37:00
--  

主窗口可能没有这个事件吧


--  作者:hhbb
--  发布时间:2011/10/29 20:49:00
--  
不是主窗口沒BeforeClose事件,而是主窗口沒控制框