473,386 Members | 1,652 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,386 software developers and data experts.

How to find the namespace a class belongs to?

Hi,

I try to use Process to open a Word document from my application.
The problem is I don't know what namespace to use in the Using statement so
that :

Process myProcess = new Process();

is recognized.
If I use Help it is useless, it doesn't tell me anything at all about it.
Thanks,
Doru
Feb 8 '06 #1
9 3139
Doru,

Check the System.Diagnostics namespace.

Also, if you right click on Process in your code in VS.NET 2005, it will
have an option to "Resolve" which will place the using statement in your
code.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Doru Roman" <do*******@rogers.com> wrote in message
news:u$**************@TK2MSFTNGP10.phx.gbl...
Hi,

I try to use Process to open a Word document from my application.
The problem is I don't know what namespace to use in the Using statement
so that :

Process myProcess = new Process();

is recognized.
If I use Help it is useless, it doesn't tell me anything at all about it.
Thanks,
Doru

Feb 8 '06 #2
System.Diagnostics.Process

"Doru Roman" <do*******@rogers.com> wrote in message
news:u$**************@TK2MSFTNGP10.phx.gbl...
Hi,

I try to use Process to open a Word document from my application.
The problem is I don't know what namespace to use in the Using statement
so that :

Process myProcess = new Process();

is recognized.
If I use Help it is useless, it doesn't tell me anything at all about it.
Thanks,
Doru

Feb 8 '06 #3
Hi,
is recognized.
If I use Help it is useless, it doesn't tell me anything at all about it.
Thanks,


What?

If you put Process class you will get it , even in google the first link is
the correct one !

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Feb 8 '06 #4
Thanks Nicholas. I use .NET 2002 which doesn't have a Resolve option. So in
general, how can I find out to what namespace a class belongs to? You
"Resolved" me this time, but it would be nice if I knew a way to find out
any other class where it comes from, using the tools that .NET offers.
Feb 8 '06 #5
Thanks Ravi. But how can I find out by myself, using whatever tools .NET
2002 or 2003 offers?
Feb 8 '06 #6
Go to http://msdn.microsoft.com.

Type "Process" in the search box.

Choose one of the links that comes up with documentation about the
Process class. (When I did it, "Process.GetCurrentProcess Method"
showed up second.)

The only annoying part of this is that I guess everyone is after .NET
2.0 documentation now, because the http://msdn2.microsoft.com
documentation keeps coming up. I can't even find the old .NET 1.1
documentation any more.

Nonetheless, this will tell you want you need to know.

Feb 8 '06 #7
To show the classes and namespaces: View | Other Windows | Object Browser
Feb 8 '06 #8
I would use F1 and filter the help, by selecting only .Net Framework
(to filter my search results and only show the library, that's what you
want)...
In fact, I did this to answer this post...

Feb 9 '06 #9
Doru Roman wrote:
Thanks Nicholas. I use .NET 2002 which doesn't have a Resolve option. So in
general, how can I find out to what namespace a class belongs to? You
"Resolved" me this time, but it would be nice if I knew a way to find out
any other class where it comes from, using the tools that .NET offers.


I went to

http://msdn.microsoft.com/library/default.asp

then in the search typed "Process class". The search found "Process
Class (.Net Framework SDK)". Clicking on this will show you what you
want, and a whole lot more. In particular, the namespace is listed in
black, bold (not a link).

hth,
Scott
Feb 9 '06 #10

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

Similar topics

3
by: Ed Severn | last post by:
I'm sorry of this question has been posed and answered many times before. But I have avoided using the "package" statement because of this. Most of my classes have no "package" statement, and...
7
by: carl.manaster | last post by:
Hi, Group, I know it says not to mess with the "code required for Designer support" that the IDE generates when I work with things in the layout editor, but I nevertheless find myself making...
4
by: al | last post by:
Hi, I tried to import Drawing namespace and then declare one of its classes, but this seems does not work with me. Imports System.Drawing Dim gr as Graphics = MyForm.CreateGraphics ...
4
by: Don | last post by:
Two questions: 1. Is there a way to get the current namespace name as a string via code? 2. Is there a way to get the name of the class a piece of shared/static code is in? i.e.
18
by: jacksu | last post by:
I have a simple program to run xpath with xerces 1_2_7 XPathFactory factory = XPathFactory.newInstance(); XPath xPath = factory.newXPath(); XPathExpression xp = xPath.compile(strXpr);...
1
by: vsgdp | last post by:
I just want to clarify: Say I have a helper class that is only used in one translation file (e.g., a predicate class). I don't want the name of this class to conflict with other class names in...
13
by: toton | last post by:
Hi, I have some enum (enumeration ) defined in some namespace, not inside class. How to use the enum constant's in some other namespace without using the whole namespace. To say in little...
17
by: Peng Yu | last post by:
Hi, I'm wondering if there is something in namespace like the 'private' keyword in class? I want to define some class or function that can only be used within that namespace. Thanks, Peng
6
by: =?Utf-8?B?RGljaw==?= | last post by:
Please can you tell me how to assign a namespace to a resource file in a Visual Basic project? In C# such resources file inherit their namespace based upon the folder hierarchy in which they are...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.