You can use the is keyword such as
dim i as IMyInterface=nothing
if(myobject is IMyInterface) then
i=DirectCast(myobject, IMyInterface)
'use the interface here...
i.MyMethod()
end if
--
Bob Powell [MVP]
Visual C#, System.Drawing
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"fred" <fr**@NoSpam.com> wrote in message
news:eh**************@tk2msftngp13.phx.gbl...
Is there a way I can find out at run time whether a particular interface
has been implemented by an instance of a class.
Thanks for any help
Fred