Click here to Skip to main content
16,007,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to turn off executing Load event at design time feature? Pin
Dave Kreskowiak21-Feb-06 13:23
mveDave Kreskowiak21-Feb-06 13:23 
GeneralRe: How to turn off executing Load event at design time feature? Pin
t800t821-Feb-06 13:28
t800t821-Feb-06 13:28 
GeneralRe: How to turn off executing Load event at design time feature? Pin
Dave Kreskowiak21-Feb-06 15:57
mveDave Kreskowiak21-Feb-06 15:57 
GeneralRe: How to turn off executing Load event at design time feature? Pin
t800t821-Feb-06 16:05
t800t821-Feb-06 16:05 
GeneralRe: How to turn off executing Load event at design time feature? Pin
Dave Kreskowiak22-Feb-06 1:52
mveDave Kreskowiak22-Feb-06 1:52 
QuestionMedia Player Control Pin
Sean8920-Feb-06 13:57
Sean8920-Feb-06 13:57 
AnswerRe: Media Player Control Pin
Judah Gabriel Himango20-Feb-06 16:33
sponsorJudah Gabriel Himango20-Feb-06 16:33 
QuestionDynamically registering events with a remote object Pin
Steven Williamson20-Feb-06 12:21
Steven Williamson20-Feb-06 12:21 
Ok where do i begin...
well i am trying to come up with a solution to allow me to register event handlers with an event dynamically. Consider the following code

<br />
if (aEvent.Name.CompareTo("getFilesCalledEvent") == 0)<br />
{<br />
    Delegate myDel =Delegate.CreateDelegate(aEvent.EventHandlerType,<br />
                    this, "EventCalled");<br />
    aEvent.AddEventHandler(this, myDel);<br />
}<br />

As far as im concerned this should register the method EventCalled contained in the running instance of the object pointed to by (this).
When executed i get the exception "Object does not match target type", when i call the AddEventHandler Method.

As far as i can assume this is because im using remoting, see aEvent is actually an EventInfo type returned from a remote object. So im guessing the delegate im passing in is actually trying to point to a local instance. But im registering it with a remote object, so when it tries to call back to the class that holds EventCalled it does not know to go through the remoting framework? Ie The object is pointing to does not exist in the context of the remote object.

This is my best guess anyone who can help your a godsend!
QuestionUse VS2005 designer to create Panel? Pin
Ravi Bhavnani20-Feb-06 11:57
professionalRavi Bhavnani20-Feb-06 11:57 
AnswerRe: Use VS2005 designer to create Panel? Pin
SHaroz20-Feb-06 13:15
SHaroz20-Feb-06 13:15 
GeneralRe: Use VS2005 designer to create Panel? Pin
Ravi Bhavnani20-Feb-06 13:21
professionalRavi Bhavnani20-Feb-06 13:21 
QuestionRemote Copy/paste Pin
IceWater4220-Feb-06 11:55
IceWater4220-Feb-06 11:55 
AnswerRe: Remote Copy/paste Pin
Judah Gabriel Himango20-Feb-06 16:36
sponsorJudah Gabriel Himango20-Feb-06 16:36 
GeneralRe: Remote Copy/paste Pin
IceWater4221-Feb-06 2:14
IceWater4221-Feb-06 2:14 
QuestionMeta tag reading in c# Pin
rizwan_rashid20-Feb-06 11:25
rizwan_rashid20-Feb-06 11:25 
AnswerRe: Meta tag reading in c# Pin
Judah Gabriel Himango20-Feb-06 16:41
sponsorJudah Gabriel Himango20-Feb-06 16:41 
Question&#x6f;nclick in Textbox windows app Pin
Cuu20-Feb-06 9:54
Cuu20-Feb-06 9:54 
AnswerRe: onclick in Textbox windows app Pin
Sean8920-Feb-06 10:44
Sean8920-Feb-06 10:44 
GeneralRe: &#x6f;nclick in Textbox windows app Pin
Cuu20-Feb-06 16:09
Cuu20-Feb-06 16:09 
AnswerRe: &#x6f;nclick in Textbox windows app Pin
microsoc20-Feb-06 14:32
microsoc20-Feb-06 14:32 
GeneralRe: &#x6f;nclick in Textbox windows app Pin
Cuu20-Feb-06 16:14
Cuu20-Feb-06 16:14 
QuestionSelect Statement Formating, need help. Pin
zaboboa20-Feb-06 9:29
zaboboa20-Feb-06 9:29 
AnswerRe: Select Statement Formating, need help. Pin
Steve Maier20-Feb-06 9:52
professionalSteve Maier20-Feb-06 9:52 
GeneralRe: Select Statement Formating, need help. Pin
zaboboa21-Feb-06 1:58
zaboboa21-Feb-06 1:58 
AnswerRe: Select Statement Formating, need help. Pin
veeru_syd27-Feb-06 14:11
veeru_syd27-Feb-06 14:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.