|
Hello everyone,
i believe the system.management namespace can be used to monitor processes for instance determine processes that exceed 80% cpu utilization and then terminate them.
I wish to write an application which can monitor other applications to determine whether they are started,stopped, idling or hanging.
Can anyone provide me with related links or articles for this particular problem?
Thanks a lot....
|
|
|
|
|
Hi,
Microsoft XML Diff and Patch tool is used for the same purpose and you can get the source code and exe of this from
http://www.gotdotnet.com/team/xmltools/
Thanks and Regards
SGS
|
|
|
|
|
|
Well, ImportNode method is very straight forward. On call to XMLDocument's ImportNode method, the function returns you an XML node that belongs to this XMLDocument.
Collect this node in a reference and you can add this node whereever you want in the XMLDocument.
For example:
XmlNode newNode = documentOne.ImportNode (documentTwo.SelectSingleNode (..));
documentOne.ChildNodes [0].AppendChild (newNode);
...
Hope this helps.
Think of it as evolution in action
|
|
|
|
|
hi all,
suppose that I have a exe called "abc.exe" ..How do I execute it using MY C# Application?
thanks in advance..
|
|
|
|
|
See System.Diagnostic.Process
|
|
|
|
|
use start method in process class
|
|
|
|
|
That should help
<code>using System.Diagnostics;
...
string ext_file = Application.StartupPath + "\\ABC.exe";
ProcessStartInfo psi = new ProcessStartInfo(ext_file, "commandline opt.");
psi.WindowStyle = ProcessWindowStyle.Normal;
Process.Start(psi);
</code>
|
|
|
|
|
hi,
many thanks to reply..
|
|
|
|
|
I just started out in C programming not long ago , and i've been assigned to create a program which requires me to save the data executed when the program is running, into a so called temporary folder.
For example, When i log into my Internet Explorer, cookies would be stored in a temporary folder.
Would be great if some1 could show me how it goes.
Thanks
Ben
|
|
|
|
|
Very broad question.
You can use FileStream from System.IO for a start. System.IO.Path for path manipulation.
Ask a more specific question.
Alex Korchemniy
|
|
|
|
|
The scenerio now would be a program source was created for the automation of a robot to avoid obstacles. In the event , I have to map out an area for the robot to move in.
So by doing that, i thought that i could collect the data( x and y axis ;points and numbers), when the robot is executed to move. By doing that i could actually map out an area using the reference data collected.
|
|
|
|
|
I'd suggest you start reading on the topic of "serialization", the framework has lots of documentation on this topic.
Basically, serialization is a way of writing data to disk, for example, so that it can be loaded (deserialized) fairly easily.
Regards,
mav
|
|
|
|
|
i have a dataset with 2 datatables link with one data relation, i had loaded the datagrid with the parent datatable, it shows the drill down button to the child table, but the problem is it only show a "link" to the childtable, i only can view the data in child table by clicking the "link", is there anyway to show the datarelation on the datagrid without the "link"?any help is greatly appreciated..
|
|
|
|
|
If you mean to show both parent and child data at the same time than it is not possible to do it with the DataGrid. If you need this you will have to do it yourself or look for another component.
|
|
|
|
|
I offer a service which is done using an application. It needs to be run on client machine, is there anyway I can get it through without making client manually downloaded the file first then ran it again manually? I have been looking at ActiveX but can't relly find an article that show me how.. I am really new to ActiveX though.
|
|
|
|
|
Not really. Remotely launching an executable is an extreme security risk, so it is VERY tightly controlled.
More details on your application would be helpful. Is your code coming from a web site?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
The code is not from the website, however I used the coding for hardware infomation http://www.codeproject.com/csharp/Hardware_Properties_C_.asp as an example. The application I wish to run is used to check for machine hardware infomation which is needed to be ran on client machine in order to get the infomation... is it that right? Is there any other way to do it?
I read something on .cab today? Could it be a possible solution?
http://msdn.microsoft.com/workshop/components/activex/packaging.asp#EXAMPLE
Thank you,
|
|
|
|
|
I have a winform with a panel control. Panel control contain few custom label controls, which can easily move anywhere inside that panel control.
Now i can only move or select one custom label and place anywhere inside the panel. But here i would like to implement group selection or group movement of custom labels.
Please give me some clues which will help me to implement this group selection or movement.
Sreejith Nair
[ My Articles ]
|
|
|
|
|
sreejith ss nair wrote:
Please give me some clues which will help me to implement this group selection or movement.
Uh, you're not talking about doing this in the designer, right?
So, trap the Click event for all the controls and see if the CTRL key is being held down. If it is, add the control to an array of "selected controls". On the MouseMove event for any control, if the CTRL key is still held down, then change the Location of each control in the array based on the mouse movement change.
Marc
MyXaml
Advanced Unit Testing
YAPO
|
|
|
|
|
I'm pretty green at C#, and what I'm trying to do is what is described in C++, my native language, is sending and retriving data from a modeless box. What I have is a main dialog box/form that calls another dialog box/form, and I can't seem to location the method of getting data from the main form to the newly called form.
If someone could point me to a simple app that uses this function or just describe what I'm looking for in the parent call, that would be great.
Thanks
J Guds
Masters Student
Kansas University
|
|
|
|
|
Hi Guds,
1) You can pass the instance of the main form to the child form and can access the values from that object.
2)You can use delegate to access the values of the main form in the child form.
Thanks and Regards
SGS
|
|
|
|
|
It's fairly simple, just pass the reference to the main form to the modeless form. Something like
class MainForm : Form
{
public void ShowForm()
{
ChildForm f = new ChildForm(this);
f.Show();
}
}
class ChildForm : Form
{
MainForm mainForm;
public ChildForm(MainForm f)
{
mainForm = f;
}
void SomeFunc() { int data = mainForm.data; }
}
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hello,
I tried to uninstall an application.
However I still get the "The specified service already exists" error when I try to reinstall the
application.
How can I fix the problem?
Thanks in advance.
Regards,
Clifford
|
|
|
|
|
I wrote a plugin to internet explorer that requires internet explorer to be shutdown and restarted. I figured out a way to shut down IE using the MSI and to start it back up using VBScript.
I was wondering if there was a way to remember what webpage each internet explorer process was on and then open up internet explorer windows that open up to the URLs that the user was visiting previously.
Any insights?
|
|
|
|