卸载我的Form1? [英] Unload for my 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.com ...
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.com...
为什么是
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.com>
写道:
On Feb 26, 11:32 am, "Doug Glancy" <nobodyh...@replytogroup.com>
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.com...
为什么是
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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!