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
Solved

Dll Function is not appearing in vb 2015 project

Posted on 2016-09-08
2
32 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 51

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exit the loop 4 49
Open a link in vb.net 2 16
How to extract certain lines from textfile and save them to another file? 6 27
VS 2015 is giving [No relevant source lines] 2 27
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

837 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