PC Review


Reply
Thread Tools Rate Thread

Dynamic code compiling and events

 
 
=?Utf-8?B?aW5zdHJ1bw==?=
Guest
Posts: n/a
 
      8th Mar 2005
Hi all,

Okay, here's something I'd like to do, but I'm not certain its possible.
Thus far in playing with it, I haven't been able to get it going. I'm able
to load and compile a .cs file using the CodeCompiler class. I know that
portion works correctly because I can use the Invoke method of the MethodInfo
object it returns and it triggers my dynamically loaded function. My
problem shows up in +=ing my function onto an event. No matter what I've
tried to give it, I get compiler errors "variable not method", "method name
expected", etc. Is there a way to get this function bound onto my event?
Thanks much!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling code to dynamic method Andrus Microsoft C# .NET 5 24th Jun 2008 09:00 PM
order of events - dynamic checkbox events =?Utf-8?B?bG91aXNlIHJhaXNiZWNr?= Microsoft ASP .NET 0 17th Aug 2005 11:36 PM
Dynamic Events from Dynamic Controls on a User Control - Guess What? Broken! mytestemailaccount@gmail.com Microsoft ASP .NET 5 23rd Mar 2005 05:06 PM
Dynamic code compiling and events =?Utf-8?B?aW5zdHJ1bw==?= Microsoft C# .NET 2 11th Mar 2005 02:50 AM
URGENT: Dynamic controls and dynamic events Mustafa Rabie Microsoft C# .NET 0 22nd Jul 2004 11:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:15 PM.