Click here to Skip to main content
15,921,716 members
Home / Discussions / C#
   

C#

 
AnswerRe: select date into the textbox Pin
Christian Graus23-Nov-05 14:37
protectorChristian Graus23-Nov-05 14:37 
Questionprocess.start Pin
Sam 200623-Nov-05 11:51
Sam 200623-Nov-05 11:51 
AnswerRe: process.start Pin
Curtis Schlak.23-Nov-05 12:03
Curtis Schlak.23-Nov-05 12:03 
QuestionDelegates and events Pin
mirano23-Nov-05 9:21
mirano23-Nov-05 9:21 
AnswerRe: Delegates and events Pin
Leslie Sanford23-Nov-05 11:46
Leslie Sanford23-Nov-05 11:46 
GeneralRe: Delegates and events Pin
mirano23-Nov-05 13:00
mirano23-Nov-05 13:00 
GeneralRe: Delegates and events Pin
Leslie Sanford23-Nov-05 13:23
Leslie Sanford23-Nov-05 13:23 
GeneralRe: Delegates and events Pin
mirano26-Nov-05 6:19
mirano26-Nov-05 6:19 
Could not get it to work.

Here's the problem: Class A implements the interface IClient that is on the server, everything's fine. When the method Foo of the class A is executed, the event is raised, passing some data class as a reference. Now, in order to subscribe to the event from the server, I need to do something like this:

Foo f = new Foo();
IClient icl = f as IClient();

and then:

icl.SomeEvent += new ... bla, bla...

but I DO NOT HAVE a reference to class A, method Foo, which is the whole point from the very beginning. Is there another way to subscribe to the event that is wrapped in the interface without having to know the class that's implementing it on the client side?

Thanks.

Sarajevo, Bosnia
GeneralRe: Delegates and events Pin
Leslie Sanford26-Nov-05 7:08
Leslie Sanford26-Nov-05 7:08 
GeneralRe: Delegates and events Pin
mirano27-Nov-05 9:07
mirano27-Nov-05 9:07 
QuestionSounds - what were they thinking - they forgot about sound!!!!! Pin
Giles23-Nov-05 9:03
Giles23-Nov-05 9:03 
AnswerRe: Sounds - what were they thinking - they forgot about sound!!!!! Pin
Leslie Sanford23-Nov-05 9:21
Leslie Sanford23-Nov-05 9:21 
GeneralRe: Sounds - what were they thinking - they forgot about sound!!!!! Pin
Giles23-Nov-05 9:48
Giles23-Nov-05 9:48 
GeneralRe: Sounds - what were they thinking - they forgot about sound!!!!! Pin
Leslie Sanford23-Nov-05 10:49
Leslie Sanford23-Nov-05 10:49 
GeneralRe: Sounds - what were they thinking - they forgot about sound!!!!! Pin
Giles23-Nov-05 11:43
Giles23-Nov-05 11:43 
QuestionPrinter driver Pin
hg270523-Nov-05 8:45
hg270523-Nov-05 8:45 
AnswerRe: Printer driver Pin
Giles23-Nov-05 9:08
Giles23-Nov-05 9:08 
Questionmoving the mouse Pin
Sam 200623-Nov-05 8:10
Sam 200623-Nov-05 8:10 
AnswerRe: moving the mouse Pin
User 665823-Nov-05 8:38
User 665823-Nov-05 8:38 
GeneralRe: moving the mouse Pin
Sam 200623-Nov-05 11:59
Sam 200623-Nov-05 11:59 
QuestionSource safe slow pulling files - NAnt Get Pin
glocklt423-Nov-05 7:11
glocklt423-Nov-05 7:11 
AnswerRe: Source safe slow pulling files - NAnt Get Pin
Daniel Turini23-Nov-05 7:44
Daniel Turini23-Nov-05 7:44 
GeneralRe: Source safe slow pulling files - NAnt Get Pin
glocklt423-Nov-05 7:49
glocklt423-Nov-05 7:49 
QuestionProblem with Paint Pin
naglbitur23-Nov-05 6:48
naglbitur23-Nov-05 6:48 
AnswerRe: Problem with Paint Pin
Stanciu Vlad23-Nov-05 6:57
Stanciu Vlad23-Nov-05 6:57 

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.