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 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
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
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
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.
Thanks Ravi. But how can I find out by myself, using whatever tools .NET
2002 or 2003 offers?
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.
To show the classes and namespaces: View | Other Windows | Object Browser
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...
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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 ...
|
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.
|
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);...
|
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...
|
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...
|
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
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
| |