Reputation: 283
I have Errorlog.vb in my vb.net 2008 project. It is for public class.
Public Class ErrorLogger
I want to call this public class anywhere. So on EACH vb file I use
import "mainproject name".ErrorLogger
How can I declare once some where at the beginning and that class will be availabe through out the project?
Upvotes: 0
Views: 1416
Reputation: 43743
Go to your project properties, open the References tab, and select the namespace from the list of "Imported namespaces" at the bottom of the page.
Upvotes: 1
Reputation: 591
In the Solution Explorer, right click on your project and chose the Properties option. Then click on the References tabs. In this tab, you can add new Import that are Project width.
Upvotes: 1