Find Jobs
Hire Freelancers

Bind Event Handler to Event at runtime

$30-5000 USD

已取消
已发布超过 17 年前

$30-5000 USD

货到付款
Hi, I am trying to accomplish binding an event to an event handler at runtime using vb.net, but have had no success. Here are some details: 1. I want to dynamically bind the handler method to the object which raised the event at runtime. 2. My event is in it's own seperate assembly and class, my handler is in its own assembly and "form" class [login to view URL] my event and handler have identical signatures, 4.I receive the error "object does not match target type", as soon as the debugger hits the "addEventHandler" method. Here is my code so far that would reside in my form class: Dim objAssembly As [login to view URL] = [login to view URL]("myAssembly") Dim t As Type = [login to view URL]("anAssemblyClass") Dim obj As Object = [login to view URL](t, [login to view URL]) Dim ev As [login to view URL] = [login to view URL]("myEvent") Dim evh As EventHandler = New EventHandler(AddressOf myEventHandler) [login to view URL](Me, evh) can you help me? Thanks ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). * * *This broadcast message was sent to all bidders on Sunday Sep 24, 2006 1:33:25 PM: Thank you for all of your bids. I ended up figuring out how to do this my own, so I won't need any help now and am closing the bid. Thanks Again, Rick ## Platform vb.net
项目 ID: 3788979

关于此项目

1条提案
远程项目
活跃18 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
1威客以均价$17 USD来参与此工作竞标
用户头像
See private message.
$17 USD 在10天之内
4.9 (68条评论)
4.9
4.9

关于客户

UNITED STATES的国旗
United States
5.0
4
会员自12月 18, 2001起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。