Drag & Drop Object implementing an Interface

  • Thread starter Thread starter BluDog
  • Start date Start date
B

BluDog

Hi

Anyone know how to drop an object into a textbox if you don't know the
source or type, only that it implements a particular interface?

Thanks

Tom
 
You can check if an object implements an interface, like this:

If TypeOf objToCheck Is IInterface Then
...
End If

--
HTH,
-- Tom Spink, Über Geek

Woe be the day VBC.EXE says, "OrElse what?"

Please respond to the newsgroup,
so all can benefit
 
* BluDog said:
Anyone know how to drop an object into a textbox if you don't know the
source or type, only that it implements a particular interface?

"Post some code."

What's the exact problem?
 
Back
Top