Solved

Importing a Namespace in a UserControl?

Posted on 2014-01-10
2
220 Views
Last Modified: 2014-01-10
I'm trying to create a User Control in which I have a combobox that needs to access the Business Layer of my application. I tried using the "Imports" statement but my Business Layer (which is a separate project) wasn't one of my options? Is it NOT possible to import a class from another project that is included in the Solution?

Thanks!
0
Comment
Question by:BlakeMcKenna
2 Comments
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 39772016
Have you created a reference to the business layer project in the project that contains the usercontrol you should then be able to use the Imports statement.

Right click the project containing the usercontrol in solution manager and select add reference.
0
 

Author Closing Comment

by:BlakeMcKenna
ID: 39772044
Actually, you just triggered a thought. My UC is actually a separate project in itself. I just added a reference to that project and that did the trick!

Thanks!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

829 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