2
Answers

Help with converting from a Windows App to a .dll???

Kevin Davis

Kevin Davis

13y
1.6k
1
Hello everyone,

I have created a little test project in a windows form app.  It consists of 1 form (form1) and a class file (cities.vb)

It works perfectly fine as a Windows app, but when I try to convert it to a .dll, it states an error in my cities class file as "Error 1 Reference to a non-shared member requires an object reference."  Ok. That's fine and dandy, I add the typical "dim form as new form1" in the cities class file, and it compiles to a .dll just fine.  When I add the .dll to another project, and call the .dll, it doesn't perform the actions I need it to, and what works perfectly fine as a windows app, doesn't function as a .dll.

I have attached both the working and non-working files for your review.  What am I missing?  I just know it's something little.  Or what am I doing wrong?  Or what could be done better?  Thanks for any help.

Kevin

Attachment: vbfiles.zip

Answers (2)