RE: creating .dll files 12-02-2012, 07:16 AM
#2
Sorry for bumping this old thread, but maybe others need it.
You need to look into reflection class.
It will help you allot.
Dll MsgBoxExample:
Step1:
Open your vb net client 2008,2010,2012 .. (any of them), click New Project and choose Class Library.
![[Image: y8Q10.png]](http://i.imgur.com/y8Q10.png)
After the project is opened, right under Class1 make a shared sub called anyway you liked.
![[Image: aB83P.png]](http://i.imgur.com/aB83P.png)
Save and build the project.
Step2:
Make a form project or in my case i like the empty project.
![[Image: 2Hqdy.png]](http://i.imgur.com/2Hqdy.png)
Add you previously builded class to the new project resources.
![[Image: odeKa.png]](http://i.imgur.com/odeKa.png)
After you do that add a class and right under Class1 add this code.
![[Image: Ac6wV.png]](http://i.imgur.com/Ac6wV.png)
If you did everything right, the result shold be this...
![[Image: FIfLz.png]](http://i.imgur.com/FIfLz.png)
Of course this is the beginner way.
There are many many other ways to load and use a dll and his parameters.
Good luck and have fun.
You need to look into reflection class.
It will help you allot.
Dll MsgBoxExample:
Step1:
Open your vb net client 2008,2010,2012 .. (any of them), click New Project and choose Class Library.
Spoiler:
![[Image: y8Q10.png]](http://i.imgur.com/y8Q10.png)
After the project is opened, right under Class1 make a shared sub called anyway you liked.
Spoiler:
![[Image: aB83P.png]](http://i.imgur.com/aB83P.png)
Save and build the project.
Step2:
Make a form project or in my case i like the empty project.
Spoiler:
![[Image: 2Hqdy.png]](http://i.imgur.com/2Hqdy.png)
Add you previously builded class to the new project resources.
Spoiler:
![[Image: odeKa.png]](http://i.imgur.com/odeKa.png)
After you do that add a class and right under Class1 add this code.
Spoiler:
![[Image: Ac6wV.png]](http://i.imgur.com/Ac6wV.png)
If you did everything right, the result shold be this...
Spoiler:
![[Image: FIfLz.png]](http://i.imgur.com/FIfLz.png)
Of course this is the beginner way.
There are many many other ways to load and use a dll and his parameters.
Good luck and have fun.

![[+]](https://sinister.li/images/modern/collapse_collapsed.png)