Solved

Creating Class Library in Visual C#

Posted on 2013-12-23
4
330 Views
Last Modified: 2014-01-06
I am trying to following this sameple and using dll in my vb.net project, just for testing. I am using VS2008 3.5. I added it to Reference.

dim test as new Classlibrary1.class1 < this won't work.



C#
ee.jpg
0
Comment
Question by:VBdotnet2005
  • 2
4 Comments
 
LVL 29

Expert Comment

by:Paul Jackson
Comment Utility
Looks like you've created a private class ensure you have the public keyword before the class i.e.

namespace ClassLibrary1
{
    public class class1
    {

     }
}

Open in new window

0
 
LVL 74

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 250 total points
Comment Utility
For correctness, the default (i.e. when you don't explicitly specify) access modifier for classes is internal, not private. You would not be able to see any internal members outside of the assembly containing that class--unless you include a special attribute.
0
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 250 total points
Comment Utility
@kaufmed thanks for the clarification, I wasn't aware of that I assumed it was private, but then I always specify access modifiers as a matter of course.

@vbdotnet2005

Here's some info on the differences between the access modifiers :

Access Modifiers
0
 

Author Comment

by:VBdotnet2005
Comment Utility
excellent !!! Thank you
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 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

8 Experts available now in Live!

Get 1:1 Help Now