"MyLib.vb" - VB Class and Library
How to create a VB class and build it into a library?
If you want to create a VB class and build it into a library, you can follow this tutorial:
1. Create the class source code file, MyLib.vb, with a text editor:
' MyLib.vb ' Copyright (c) FYIcenter.com Public Class MyLib Public Shared Sub PrintHello() Console.WriteLine("Hello World! - From MyLib.") End Sub End Class
2. Compile and build the static library with the "vbc /target:library" command:
>vbc /target:library MyLib.vb Microsoft (R) Visual Basic Compiler version 220.127.116.11624 Copyright (C) Microsoft Corporation. All rights reserved. >dir MyLib.* 09:47 AM 6,144 MyLib.dll 09:42 AM 182 MyLib.vb
3. Distribute the library file, MyLib.dll, to others to use.
â‡’â‡’Visual Studio Tutorials
2017-08-13, 1826👍, 0💬
What is EPUB 3.0 Metadata "dc:publisher" and "dc:rights" elements? EPUB 3.0 Metadata "dc:publisher" ...
What is test testing area for? The testing area is provided to allow visitors to post testing commen...
How to use the "forward-request" Policy Statement to call the backend service for an Azure API servi...
What is Azure API Management Publisher Dashboard? Azure API Management Publisher Dashboard is an Azu...
Where to find tutorials on OpenID? Here is a large collection of tutorials to answer many frequently...