This is the first time I used dll.

I have design the form1,form2 and also name the class1 and save it as project2

But How I can access the form in the class? I can see the class1 list. I also add it as reference.But When typing MyObject , the from1 and form2 not listed. How to list it? hopes learning from the sample attach file from you

Dim MyObject As Project2.Class1
Set Myobject = New Project2.Class1