在事件过程中取消事件 [英] Cancelling event in event procedure
本文介绍了在事件过程中取消事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在某些条件下取消事件过程中的事件,我知道
如何在VB6中执行此操作,即设置cancel = true。请告诉我怎样才能在VB.net中执行此操作
我不知道如何在VB.net中使用eventArgs而且
它的帮助是MSDN。
我要提前感谢你。
I want to cancel an event from its event procedure on some condition, I know
how to do this in VB6 i.e. by setting cancel=true. Please tell me how can I
do this in VB.net I don''t know how to use the eventArgs in VB.net and neither
its help is available in MSDN.
I''m thank full to you in advance.
推荐答案
Adil,
这取决于事件。但是,看看事件参数是否可能比通常情况下要好。
e.cancel = true或false。
>
我希望这会有所帮助,
Cor
Adil,
It depends on the event. However have a look at the eventarguments if it is
possible than it is normally
e.cancel = true or false.
I hope this helps,
Cor
谢谢你的回复,但它并没有解决问题,我实际上想要取消表格'的'加载事件'
。我想做的是,停止在
上加载表格。
请告诉我这是否可行,或者是否有任何替代解决方案
来解决这个问题。
" Cor Ligthert [MVP]"写道:
Thanks for you reply but it didn''t solve the problem, I actually want to
cancel the form''s Load event. What I want to do is, To stop loading form on
some condition.
Please tell me if this is possible, or if there''s any alternative solution
to this problem.
"Cor Ligthert [MVP]" wrote:
Adil,
这取决于事件。但是看看事件参数是否可能比通常情况更好
e.cancel = true或false。
我希望这有帮助,
Adil,
It depends on the event. However have a look at the eventarguments if it is
possible than it is normally
e.cancel = true or false.
I hope this helps,
Cor
Adil,
Adil,
谢谢你回复但是它没有解决问题,我实际上想取消表单'的Load事件。我想要做的是,在某些情况下停止加载表格
。
Thanks for you reply but it didn''t solve the problem, I actually want to
cancel the form''s Load event. What I want to do is, To stop loading form
on
some condition.
在表单加载事件中,您可以简单地放置。< br $> b $ b me.close
我希望这会有所帮助,
Cor
In the forms load event you can simple place.
me.close
I hope this helps,
Cor
这篇关于在事件过程中取消事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文