(nobody)
8/18/2010 1:30:00 PM
"Leo" <ttdhead@gmail.com> wrote in message
news:i4fnsh$pvh$1@news.eternal-september.org...
> I should have made it more clear that the DLL is written in vb and I
> havent written anything but the time consuming subs.
Then add it as a reference, then use a line like this in Form1 to use it:
Private WithEvents oClass As DLLReferenceName.ClassName
"DLLReferenceName" and "ClassName" should be what you see in Object
Browser(F2) for the DLL.
Then in Form_Load:
Set oClass = New DLLReferenceName.ClassName
And in Form_Unload:
Set oClass = Nothing
After that, on the left dropdown box, where the controls on the form are
listed, select "oClass". If you don't see "oClass", then it doesn't generate
events, and you have to do something else to get it to work.