Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to create a class library in .net with all common functions that i have written in vb6.

Am ready to rewrite it, but unlike vb6, where i could create a group project that contains a standard exe and a dll project. I want to be able to debug the dll in vs2005 like i do in vb6.

I also need to know how to write properties, methods and events in .net.

Pleas help!
Posted
Updated 19-May-10 23:35pm
v2

Judging by your requirements, you are new to .Net.
I think you should first pick up a C# or VB.Net book and do some reading.

That will help you understand how to do some of the things you have mentioned above.
You can then start rewriting your code - post any problems you run into here and someone should be able to help / guide you.
 
Share this answer
 
Definitely have a read up on the subject, but a few pointers for you

.Net uses Solutions, which are related projects similar to the old VB group project idea. Once you've created a solution, you can add any number of projects and have them reference each other.

* Open Visual Studio
* Choose File->New Project
* Choose project type 'Windows Application'
* Choose File-Add->New Project
* Choose project type 'Class Library'
* Under windows application, right click on References and choose 'Add Reference'
* On the dialog that opens, switch to the 'Projects' tab and choose the class library project you added in step 4.

Your windows application can now use the code in the class library (with using \ Imports statements!) & can debug by setting breakpoints in your class library code
 
Share this answer
 
v2
Hello,

Thanks for the prompt reply, but i just need a tutorial on the subject. I have been reading most books, but they all seem to focus on the language generally, discussing thing like forms, controls, syntax, features,overloading etc.

Please just point me to a tutorial that teach how to make a class library with properties, methods, events, returning and passing arguments.

thanks!
 
Share this answer
 
v2
Comments
Oakman 20-May-10 10:58am    
Nope. You really need to learn how .NET works. once you do, you'll realize that if you'd taken the time to get the proper grounding in the language, you never would have posted this question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900