473,395 Members | 1,452 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Imports

Hi,
I've two projects in one solution a windows and web project and I would like
to get access to the windows classes (namespaces)by using the Imports
statement in the web project but I can't see the windows project when writing
the imports statement so how can include it in the web project
Thanks
--
Regads,
Rochdi

Nov 21 '05 #1
6 1254
Hi,

Add a reference to system.windows.forms.dll. Then you can use
the imports statement. Not everything in the windows forms classes will
work properly in a web project.

Ken
------------------
"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:6E**********************************@microsof t.com...
Hi,
I've two projects in one solution a windows and web project and I would
like
to get access to the windows classes (namespaces)by using the Imports
statement in the web project but I can't see the windows project when
writing
the imports statement so how can include it in the web project
Thanks
--
Regads,
Rochdi

Nov 21 '05 #2
sorry, but I'm very new in vb.net could tell me how can I add it to
system.windows.forms.dll and should I include the whole Windows project or
just the classes needed or...!!!!??
--
Regads,
Rochdi
"Ken Tucker [MVP]" wrote:
Hi,

Add a reference to system.windows.forms.dll. Then you can use
the imports statement. Not everything in the windows forms classes will
work properly in a web project.

Ken
------------------
"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:6E**********************************@microsof t.com...
Hi,
I've two projects in one solution a windows and web project and I would
like
to get access to the windows classes (namespaces)by using the Imports
statement in the web project but I can't see the windows project when
writing
the imports statement so how can include it in the web project
Thanks
--
Regads,
Rochdi


Nov 21 '05 #3
Mike,

I never tried it.

http://msdn.microsoft.com/msdnmag/is...h/default.aspx

I hope this helps a little bit?

Cor
Nov 21 '05 #4
Are you just trying to access the classes or actually use the forms from
your application?

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:e%****************@tk2msftngp13.phx.gbl...
Mike,

I never tried it.

http://msdn.microsoft.com/msdnmag/is...h/default.aspx

I hope this helps a little bit?

Cor

Nov 21 '05 #5
Hi,

In the project menu you will find add reference. In the list you
will find that dll. What are you trying to do anyway.

Ken
------------------------

"Mike" wrote:
sorry, but I'm very new in vb.net could tell me how can I add it to
system.windows.forms.dll and should I include the whole Windows project or
just the classes needed or...!!!!??
--
Regads,
Rochdi
"Ken Tucker [MVP]" wrote:
Hi,

Add a reference to system.windows.forms.dll. Then you can use
the imports statement. Not everything in the windows forms classes will
work properly in a web project.

Ken
------------------
"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:6E**********************************@microsof t.com...
Hi,
I've two projects in one solution a windows and web project and I would
like
to get access to the windows classes (namespaces)by using the Imports
statement in the web project but I can't see the windows project when
writing
the imports statement so how can include it in the web project
Thanks
--
Regads,
Rochdi


Nov 21 '05 #6
No not that, I know how to add a reference this way.
what I meant is that from the web project I'm trying to access the classes
of the windows project and I am not able to include the namespaces of my
windows project using the imports statement because I don't have a dll from
my win project to reference it!!!?

Thanks
--
Regads,
Rochdi
"Ken Tucker [MVP]" wrote:
Hi,

In the project menu you will find add reference. In the list you
will find that dll. What are you trying to do anyway.

Ken
------------------------

"Mike" wrote:
sorry, but I'm very new in vb.net could tell me how can I add it to
system.windows.forms.dll and should I include the whole Windows project or
just the classes needed or...!!!!??
--
Regads,
Rochdi
"Ken Tucker [MVP]" wrote:
Hi,

Add a reference to system.windows.forms.dll. Then you can use
the imports statement. Not everything in the windows forms classes will
work properly in a web project.

Ken
------------------
"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:6E**********************************@microsof t.com...
> Hi,
> I've two projects in one solution a windows and web project and I would
> like
> to get access to the windows classes (namespaces)by using the Imports
> statement in the web project but I can't see the windows project when
> writing
> the imports statement so how can include it in the web project
>
>
> Thanks
>
>
> --
> Regads,
> Rochdi
>
>
>

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steven K | last post by:
Hello, Is there a way to declare imports so that they don't have to be declared both in Master Page.vb and the Content Page.vb? For example, I have the following in the Master Page.vb Imports...
19
by: Tiraman | last post by:
Hi , I have an assembly that hold few class and few imports which are not used in all of the class's . so my question is when to use the "Imports XXX" And when to use this kind of statement...
4
by: Jeff Jarrell | last post by:
I am not really there yet with namespaces. I have a "common.dll" that is referenced from another project. now in the consuming project, source file to i'd like to have a "imports common". ...
7
by: pcnerd | last post by:
In Java I can use, for example, " Imports java.util.* ". Can I use, for example, " Imports System.* " instead of several different "Imports" statements? Thank you. David
1
by: Arpan | last post by:
What's the difference between "Imports" & "Inherits"? For e.g. both the codes below work without any errors: Imports System Imports System.Data Imports System.Web.UI Namespace Constructors...
1
by: Thomas Wittek | last post by:
Hi! Is there any possibility/tool to automatically organize the imports at the beginning of a module? I don't mean automatic imports like autoimp does as I like seeing where my...
5
by: kimiraikkonen | last post by:
Hello, I want to ask about "imports" statement. Some projects must be inserted with "imports xxxx" statements before beginning coding. But how do i know when to use or do i have to use "imports"...
0
by: Kay Schluehr | last post by:
Since their introduction in Python 2.5 I only reviewed the new "relative import" notation briefly by reading the "What's new in Python 2.5" article. Now I wanted checkout if I get comfortable with...
4
by: Albert | last post by:
Hi, when do i need this: Imports System.Data and when this: Imports System.Data.SqlClient? More specifically, when i want to perform a select or update of a table using: connection = New...
3
by: Mohamed Yousef | last post by:
Hello , The problem I'm asking about is how can imported modules be aware of other imported modules so they don't have to re-import them (avoiding importing problems and Consicing code and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.