|
Hello,
What do you have or what do you know about the process?
All the best,
Martin
-- modified at 5:29 Thursday 22nd February, 2007
System.Diagnostics.Process class has a lot of usefull methods!
|
|
|
|
|
I know all using for loop we can get all the processes
running in the task manager in the following manner.
foreach(Process prc in Process.GetProcesses())
{
////We can get all information like id of process etc.
}
But i want the "username" also under which the process is running.
how to get user name.
Rahul Kulkarni
|
|
|
|
|
I have no idea how you can do this.
Good luck
|
|
|
|
|
|
Thanks Alooot.
It's Really cool.
Rahul Kulkarni
|
|
|
|
|
hi
how can i make the new form appear in the center of the window?
i double click on the previous form opens this new one.
|
|
|
|
|
Hello,
Forms property "StartPosition" will help you.
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
All the best,
Martin
|
|
|
|
|
thank you so much.
one more thing.
on executing my application, when i try to resize the form, ie, by dragging or using the maximise button, it gets resized but the controls dont get done. they are at the same position as of the original form.
how do i resolve this?
|
|
|
|
|
Hello,
Use the Anchor or Dock property of the controls.
All the best,
Martin
|
|
|
|
|
thank you. i could do it by setting the Dock property.
|
|
|
|
|
You have to appropriately set the Anchor and/or Dock properties of the controls.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
thank you. i could do it by setting the Dock property.
|
|
|
|
|
I am new to Visual studio 2005.
In previous versions of Visual Studio, whenever you build a web application in debug mode, automatically a dll of the application used to get added in bi\debug folder.
Now in 2005 how do we create this dll?
please let me know ASAP.
Nana
|
|
|
|
|
Hi,
I require to get a value of varaibale in whole project. How can I ?
For exameple, In starting of applicaton i initialize the variable's state. That i require on several Form. I cannot change the name of variable.
Any one tried this.Plz give me some hints....
Binod K.
|
|
|
|
|
Hello,
You could use a const or static variable.
//mainformcode
public const int constint = 100;
public static int staticint = 100;
public Form1()
{
InitializeComponent();
}
//other class
int i1 = Form1.constint;
//setting a const variable is not possible at this point (Form1.constint = 200, will not compile)
int i2 = Form1.staticint;
Form1.staticint = 200;
All the best,
Martin
|
|
|
|
|
Martin# wrote: You could use a const or static variable
A const variable? (const = constant, which means it doesn't change; variable meaning it does change)
|
|
|
|
|
You got me!
All the best,
Martin
|
|
|
|
|
I am having trouble finding out how to open a document in its native external program client side.
The application is a web based serverside .Net App that needs to open a file which exists on the server, but using a clients local program (eg notepad for .txt files). I have tried Process.start(), however, this only starts a server-side process which the client machine never sees.
I want to avoid using a hyperlink as I really need the files to be opened on a _SelectedIndexChanged event.
Please can someone help, as this is the whole point of the app and it will screw up my process if it can't be done
Thank you all in advance
Mark
|
|
|
|
|
I think your chances to get an answer are higher, if asking this in the ASP.NET or Web Development forum.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
You cannot run Process.Start() to open a document on client side. AFAIK the only way is to redirect the client to a url where the document is located. You could try using window.open() if you do not want to close the existing page.
|
|
|
|
|
I need to be able to get every bit from a file (0 and 1). How do i do this. please help
rzvme
|
|
|
|
|
You could try reading all the bytes and then convert this to bits.
|
|
|
|
|
and how exactly do i do this
rzvme
|
|
|
|
|
Take a look at the BinaryReader (read data from the file) and BitArray (access the data bit-wise).
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
i tried with that
but it retrives bytes (in ascii)
rzvme
|
|
|
|