PaulBarter
MIS
Is it possible to pass a PictureBox to a DLL?
When I try, I get Error 91
The full project will contain routines to draw various text and images, but I have created simple project1 with just a Command Button and a PictureBox and code
and a project2 ActiveX DLL with code
When I click the Button, I get the error 91
Either I'm doing something silly, or missing some Reference, or it's not possible.
When I try, I get Error 91
The full project will contain routines to draw various text and images, but I have created simple project1 with just a Command Button and a PictureBox and code
Code:
Option Explicit
Dim MyClass As Class1
Private Sub Command1_Click()
Set MyClass.MyPicture = Picture1
End Sub
and a project2 ActiveX DLL with code
Code:
Option Explicit
Dim picPic As PictureBox
Public Property Set MyPicture(pPic As Object)
Set picPic = pPic
End Property
Public Property Get MyPicture() As Object
picPic.Print "Hello"
Set MyPicture = picPic
End Property
When I click the Button, I get the error 91
Either I'm doing something silly, or missing some Reference, or it's not possible.