Solved

Dll Function is not appearing in vb 2015 project

Posted on 2016-09-08
2
20 Views
Last Modified: 2016-09-08
Using VS 2015 on Server 2012 R2

---------------------------------------------
DLL Code is

Public Class SalDll
    Class SubClass1
        Function AddingNumbers(ByVal Number1 As Integer, ByVal Number2 As Integer)
            Return (Number1 + Number2)
        End Function
    End Class
End Class

---------------------------------------------
Project Code is

Imports Test1.SalDll
Public Class Form1
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        SubClass1.(the problem is here)
    End Sub
End Class

---------------------------------------------
The problem is
By typing (Imports Test1.) then (SalDll) appears and I can select
By typing (SubClass1.) then (AddingNumbers) is not appearing

Any Idea
0
Comment
Question by:saljas
2 Comments
 
LVL 49

Accepted Solution

by:
Ryan Chong earned 500 total points
Comment Utility
for your DLL Code function, try add Shared in front of your function:

Shared Function AddingNumbers(ByVal Number1 As Integer, ByVal Number2 As Integer)
0
 

Author Closing Comment

by:saljas
Comment Utility
Very good        Many thanks it works with shared
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now