事件(表格) [英] events (forms)

查看:117
本文介绍了事件(表格)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我想以一种形式调用事件,这将被发送到其他形式

(两种形式没有任何共同之处)。有人可以把我推荐给好的

这样做的例子吗?谢谢!


***通过Developersdex发送 http:/ /www.developersdex.com ***

Hello,
I want to invoke event in one form which will be sent to other form
(both forms has nothing in common) . Could someone plz refer me to good
example for doing it? Thank you!

*** Sent via Developersdex http://www.developersdex.com ***

推荐答案

这里的文章将有所帮助:
http://www.eggheadcafe.com/articles/20040229.asp

--Peter

在每个大型程序中,都有一个小程序试图离开。
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http: //www.blogmetafinder.com

" csharpula csharp"写道:
article here will help:
http://www.eggheadcafe.com/articles/20040229.asp
--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com

"csharpula csharp" wrote:

您好,

我想以一种形式调用事件,这将被发送到其他表格

(两种形式没有任何共同之处)。有人可以把我推荐给好的

这样做的例子吗?谢谢!


***通过Developersdex发送 http:/ /www.developersdex.com ***
Hello,
I want to invoke event in one form which will be sent to other form
(both forms has nothing in common) . Could someone plz refer me to good
example for doing it? Thank you!

*** Sent via Developersdex http://www.developersdex.com ***


11月29日下午12:06,Peter Bromberg [C#MVP]
< pbromb ... @ yahoo.NoSpamMaam.comwrote:
On Nov 29, 12:06 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.NoSpamMaam.comwrote:

这里的文章将有所帮助: http://www.eggheadcafe.com/articles/20040229.asp



使用发件人的建议任意数据的参数

对我来说似乎是一个坏主意。 sender参数有一个明确的

定义的角色:它应该是引发事件的对象。如果事件

逻辑上接受参数(例如显示的消息),那就是

第二个参数的用途。


Jon

The recommendation of using the "sender" parameter for arbitrary data
seems like a bad idea to me. The sender parameter has a clearly
defined role: it should be the object raising the event. If the event
logically takes arguments (e.g. a message to display) that''s what the
second parameter is for.

Jon




这对我的情况没有帮助,因为我需要2

表格之间的沟通不是继承关系.Hoc我可以根据其他形式发生的变化来改变一个控件的价值吗? (没有

表格之间的继承)谢谢!

***通过Developersdex发送 http://www.developersdex.com ***

It is not helping in my case because I need a communication between 2
forms which are not in inheritence relatioship .Hoc can I change value
of one control basing on change that occured on other form? (no
inheritence between forms) Thank you!
*** Sent via Developersdex http://www.developersdex.com ***


这篇关于事件(表格)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆