Hi,
i am translating some code from vb.net to c# and am having trouble with the 'withevents' declaration of a variable. For example how do i declare this in c#
many thanks if you can helpCode:Dim WithEvents myObj as Outlook.Application 'the event is then Public sub MailSend(byval item as object, byref cancel as boolean) handles myObj.Itemsend End sub
nick




Reply With Quote