How to make a COMponent to allow other apps access to my app's functions

I have written a complete application in VB.Net.  Assuming I have a form: 'frmNewFolders' which contains a Function which creates 5 new folders in the directory named: strDirectoryLocation (a private variable declared in that form).  (The value of the 'strDirectoryLocation' string is set elsewhere within the application.)

How do I create a dll in order to access that form's 'CreateFolders' function?
Does the private variable strDirectoryLocation need to be declared as a Public variable before it will be accessible to other applications?
If someone has already installed my application, if I send them the necessary dll file what must they do to get the dll file to be recognised by their system/available to their other applications?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
1) If you have a public class in a DLL, then all members that you want to expose to the world must be Public to be accessible.

2) If someone gets your DLL, then all they need to do is have a reference to that project.

3) If you are creating reusable code in DLL's for other developers to use, then use attributes (and code comments where available) to help them.  An example of an attribute would be the Description

<Description("This method gets an array of files from the specified full path.")> _
Public Function GetFolders(ByVal path As String) As String()
End Sub


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.