Can't Access Enums

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
4 posts Page 1 of 1
Contributors
User avatar
XTechVB
VIP - Site Partner
VIP - Site Partner
Posts: 727
Joined: Thu May 20, 2010 10:32 am

Can't Access Enums
XTechVB
I have a DLL file with this code
Code: Select all
Public Class Class1
    Public Enum Hello
        One
        Two
        Three
    End Enum
End Class
I made a program and referenced the DLL but sometimes when i try to access that Public Enum in the DLL file i get File Not Found Error (MyApp\Bin\MyLibrary.dll)
Why?
You can find me on Facebook or on Skype mihai_92b
User avatar
noypikami
VIP - Donator
VIP - Donator
Posts: 151
Joined: Sat Dec 22, 2012 1:49 am

Re: Can't Access Enums
noypikami
i think for that very short code, its better to use a MODULE instead of making DLL, where-in module can be accessed easily and no need for reference. ...

THAT'S ONLY MY IDEA TO MAKE CODING FASTER AND REDUCE HEADACHES, YOU GONNA HAVE TO FIND A WAY TO MAKE A SOLUTION BEFORE YOUR MIND ALMOST EXPLODE FROM TOO MUCH THINKING..
User avatar
clanc789
Coding Guru
Coding Guru
Posts: 786
Joined: Tue Nov 02, 2010 4:45 pm

Re: Can't Access Enums
clanc789
If you acces Public Enum you should state Public Enum Hello since that is the full name of the Enum?
Practice makes perfect!

VIP since: 6-10-2011
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Can't Access Enums
mandai
The application will normally look in the same folder for that DLL file reference.

If you put it in the same folder as the application do you still get the error?
4 posts Page 1 of 1
Return to “Coding Help & Support”