C# Event Handler

  • Thread starter Thread starter Ricardo Trujillo
  • Start date Start date
R

Ricardo Trujillo

I need to do this in C#. How can I do it?

Private Sub TestLocalEventHandler()
Dim m_olApp As New Outlook.Application()
AddHandler m_olApp.NewMail, AddressOf _
Me.EventHandlerNewMail
RemoveHandler m_olApp.NewMail, AddressOf
Me.EventHandlerNewMail
End Sub

Thanks in advance!!!

Ricardo trujillo
Medellin-Colombia
 
Hi,

If you have vs.net 2003 just type

m_olApp.NewMail +=

and hit tab twice - it will autocomplete the declaration and create event
sink method

Miha
 
Back
Top