C# Event Handler

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
 
M

Miha Markic

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
 

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

Top