In this post, we will discuss how we can create a dll in windows based application in vb.Net. Also, you can check out my previous posts on:
Follow below steps:
-> First open the Visual Studio.
-> Then go to File menu
-> create a new project
-> select class library
-> select visual basic
-> Then give the name of the solution as myDll
-> Then give the location like D:\myDll1
-> Then press ok.
Below is the Example:
Public Class class1
Public Str As String
Public Function Display() As String
Public Function Add (By Val an As integer, By Val b As integer) As integer
Then go to build option.
Select build myDll.(It creates some DLL files in a location like D:\myDll1\myDll\myDll\bin\Debug\myDll.dll).