欢迎您:游客!请先
登录
或
注册
风格
恢复默认设置
|
展区
文件集浏览
图片集浏览
Flash浏览
音乐集浏览
电影集浏览
|
搜索
Foxtable(狐表)
→
用户栏目
→
专家坐堂
→ beforecolse中的cancel = true 不起作用?
新的主题
投票帖
小字报
下一主题 >>
<< 上一主题
共有
2042
人关注过本帖
平板
打印
复制链接
主题:beforecolse中的cancel = true 不起作用?
tld
小
大
1楼
|
信息
|
搜索
|
邮箱
|
主页
|
UC
加好友
发短信
等级:三尾狐
帖子:
735
积分:7646
威望:0
精华:0
注册:
2017/2/3 10:29:00
beforecolse中的cancel = true 不起作用?
Post By:2020/11/10 5:35:00 [
只看该作者
]
老师,我在窗口的beforeclose事件中有如下代码:
For Each dr As DataRow In DataTables(e.Form.name & "_table1").dataRows
If dr.RowState <> DataRowstate.unchanged Then
Dim Result As DialogResult
Result = MessageBox.Show("上表中有未保存的行 , 请确认是否需要处理 ?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If Result = DialogResult.Yes Then
e.Cancel = True
Return
End If
End If
Next
执行上述代码,点击 yes 后,窗口依然关闭,不知道什么原因?请指点。谢谢!
下一主题 >>
<< 上一主题
RSS2.0
|
Xhtml无图版
|
Xslt无图版
Copyright © 2000 - 2018
foxtable
.com
Tel: 4000-810-820 粤ICP备11091905号
Powered By
Dvbbs
Version 8.3.0
页面执行时间 0.02539 秒, 5 次数据查询