卸载我的Form1?

编程入门 行业动态 更新时间:2024-10-11 17:24:14
本文介绍了卸载我的Form1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

为什么是这样? Public Sub Form1_Load(ByVal sender As System.Object,ByVal e As System.EventArgs)处理MyBase.Load 工作正常,但 公共子Form1_Unload(ByVal发送者为System.Object,ByVal e As 系统。 EventArgs)处理MyBase.Load 似乎根本不起作用? 卸载期间有效的函数名称是什么(通过单击Form1窗口右上角的X)。 注意Form1是我的主窗口。 谢谢

why is that Public Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load works fine, but Public Sub Form1_Unload(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load seems not to work at all ? what is a valid function name during unloading (through clicking "X" in right corner of the Form1 window). Note Form1 is my main window. Thanks

推荐答案

Joe, 我相信第二个需要说Handles MyBase.Unload,无论如何不是" MyBase.Load"。 hth, Doug " Joe" < jo ***** @tlen.plwrote in message news:11 ********************** @ z35g2000cwz。 googlegr oups ... Joe, I believe the 2nd one needs to say "Handles MyBase.Unload", in any case not "MyBase.Load". hth, Doug "Joe" <jo*****@tlen.plwrote in message news:11**********************@z35g2000cwz.googlegr oups... 为什么是 Public Sub Form1_Load(ByVal sender As System.Object,ByVal e As System.EventArgs)处理MyBase.Load 工作正常,但 Public Sub Form1_Unload( ByVal sender As System.Object,ByVal e As System.EventArgs)处理MyBase.Load 似乎根本不起作用? 卸载期间有效的函数名称是什么(通过单击Form1窗口右上角的X)。 注意Form1是我的主窗口。 谢谢 why is that Public Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load works fine, but Public Sub Form1_Unload(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load seems not to work at all ? what is a valid function name during unloading (through clicking "X" in right corner of the Form1 window). Note Form1 is my main window. Thanks

2月26日上午11点32分,Doug Glancy < nobodyh ... @ replytogroup> 写道: On Feb 26, 11:32 am, "Doug Glancy" <nobodyh...@replytogroup> wrote: Joe, 我相信第二个人需要说Handles MyBase.Unload,无论如何不是 " MyBase.Load"。 Joe, I believe the 2nd one needs to say "Handles MyBase.Unload", in any case not "MyBase.Load".

,遗憾的是,MyBase.Unload不存在,既不是关闭,也不是退出, 退出或CloseThreat :(

unfortunately, MyBase.Unload does not exist, neither "Close", "Exit", "Quit" or "CloseThreat" :(

第二个将load事件分配给卸载例程。 如果你想捕获卸载事件,请查看Form_Closing,而不是 Form_Unload。 Robin S. ------------------------- " Joe"< jo *****@tlen.plwrote in message news:11 ********************** @ z35g2000cwz.googlegr oups。 com ... The second one assigned the load event to the unload routine. If you are trying to capture the unload event, look at Form_Closing, not Form_Unload. Robin S. ------------------------- "Joe" <jo*****@tlen.plwrote in message news:11**********************@z35g2000cwz.googlegr oups... 为什么是 Public Sub Form1_Load(ByVal sender As System.Object,ByVal e As System.EventArgs)处理MyBase.Load 工作正常,但 Public Sub Form1_Unload(ByVal sender As System.Object,ByVal e As System.EventArgs)处理MyBase.Load 似乎根本不工作?什么是有效的函数名称? br /> 卸载(通过单击Form1窗口右上角的X)。 /> 注意Form1是我的主窗口。 谢谢 why is that Public Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load works fine, but Public Sub Form1_Unload(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load seems not to work at all ? what is a valid function name during unloading (through clicking "X" in right corner of the Form1 window). Note Form1 is my main window. Thanks

更多推荐

卸载我的Form1?

本文发布于:2023-10-11 17:25:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1482344.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!