If it follows the standard events, then yes it should be.  I have no idea what 
their object looks like, but off the top of my head, something generic would 
look like:

//in your code
Ftp f = new Ftp();
f.OnConnectionStatus += new OnConnectionStatusEventHandler( 
FTP_OnConnectionStatus );
//do whatever else with f
f.Something();


//declare the method that will be called when the event is raised.
private void FTP_OnConnectionStatus( object source, 
FtpConnectionStatusEventArgs e ){

Ftp f = (Ftp)source;

//do something with f
f.Whatever()

}

If you code in VB, you should be able to paste it into the translator at  
http://authors.aspalliance.com/aldotnet/examples/translate.aspx
to get a VB.NET translation.

Cheers!
Dave
  ----- Original Message ----- 
  From: Falls, Travis D (HTSC, CASD) 
  To: [email protected] 
  Sent: Friday, December 02, 2005 2:11 PM
  Subject: [AspNetAnyQuestionIsOk] Events


  I am using an API IP Works 6.0 to handle FTP actions.  In doing so I am there 
is a published event OnConnectionStatus which I am assuming issues and event 
when the status of the connection changes ie: if it was connected and 
disconnects an event would fire and vice versa.  I am very new to delegates, 
events, and handlers and would like to take advantage of this.  The object that 
the event is published in is called Ftp and I would have a collection of 
instances of it.  the event has two args object source, 
FtpConnectionStatusEventArgs e.  Is the object source the actual instance of 
the Ftp object that the event occurred in?

  Travis D. Falls | Consultant   RAFT.Net   IT | 860.547.4070 | [EMAIL 
PROTECTED]




  *************************************************************************
  This communication, including attachments, is
  for the exclusive use of addressee and may contain proprietary,
  confidential and/or privileged information.  If you are not the intended
  recipient, any use, copying, disclosure, dissemination or distribution is
  strictly prohibited.  If you are not the intended recipient, please notify
  the sender immediately by return e-mail, delete this communication and
  destroy all copies.
  *************************************************************************



  SPONSORED LINKS Basic programming language  Computer programming languages  
Programming languages  
        Java programming language  


------------------------------------------------------------------------------
  YAHOO! GROUPS LINKS 

    a..  Visit your group "AspNetAnyQuestionIsOk" on the web.
      
    b..  To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]
      
    c..  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


------------------------------------------------------------------------------



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to