(E-Mail Removed) wrote:
> When I tried a Long I got the message
> "'AddressOf' expression cannot be converted to 'Long' because 'Long'
> is not a delegate type."
Hi,
If you look at the documentation relative to AddressOf, you'll see that
AddressOf returns a Delegate object. So your variable should be of type
Delegate.
Dim CurrentHandler as [Delegate]
(the brackets are here because Delegate is also a reserved keyword).
--
Patrick Philippot - Microsoft MVP
MainSoft Consulting Services
www.mainsoft.fr