Solved

Dll Function is not appearing in vb 2015 project

Posted on 2016-09-08
2
36 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 52

Accepted Solution

by:
Ryan Chong earned 500 total points
ID: 41789191
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
ID: 41789205
Very good        Many thanks it works with shared
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

707 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