本文介绍了使用(object sender,eventargs)调用函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨我有一个用C#编写的应用程序并且它有一个包含一个函数的类(带有此参数的计时器对象发送者,EventArgs e),现在是
我想通过另一个类调用此函数,因此我创建了该类的一个实例
当我用
timer_Tick(null , eventargs.empty )
调用此函数时或
(object sender ,eventargs.empty )
用于参数
"object sender , event args e"
错误发生了?
有人有解决办法吗?
谢谢
解决方案
hiI have an application that hs been written with C#
and it has a class that it contains a function(timer with this arguments object sender, EventArgs e) and now
I want to call this function by another class thus i create an instance of this class
when i call this function with timer_Tick(null , eventargs.empty )
or (object sender ,eventargs.empty )
for arguments "object sender , event args e"
error has occured?
anybody have a solution?
thanks
解决方案
这篇关于使用(object sender,eventargs)调用函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!