Subcribe to an event

  • Thread starter Thread starter choc
  • Start date Start date
C

choc

Hi, I'm using a class called FtpClient which publishes several events, such
as DataRecieved, TransferStared etc...

My question is, how do I subscribe to them??

Ive done this before but cant remember how :-/
 
choc said:
Hi, I'm using a class called FtpClient which publishes several events, such
as DataRecieved, TransferStared etc...

My question is, how do I subscribe to them??

Ive done this before but cant remember how :-/

Something like that:

FtpClient.DataReceived += new WhatevereEventDelegateName( this.YourEventHandlingFunction);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top