I've got a section of code that needs to be executed at form closing, but neither the closed or closing events work for me. The code needs to be executed BEFORE the form actually closes (it needs to gracefully stop some pending operations if they're in progress).
I of course can link this to...
I work in tech support and I need to be able to build the functionality of killing a process that's running on a remote pc into my c# apps.
Any thoughts? The process class doesnt seem to allow this...
I've got a program that does a search using directory services, and the problem i'm having is returning the results. I moved the search to a background thread (using System.Threading.Thread) so that it can be cancelled, gui remains responsive, etc.
I've defined an event called itemFound that...
I'm working on an active directory tool for use in tech support at my corporation. What i'd like to be able to do... is have this program launch the actual Active Directory Users and Computers snap-in, to a specific item in AD. Is this possible? I've got the path to the item i want in AD...
Is there a way I can write a search function using DirectoryServices that will return only results located within a specific organizational unit in active directory?
The idea being to write a search function that will return, say, a list of all domain controllers for a domain (they all reside...
I've got a utility i'm trying to write that makes some modifications to the system registry, as well as opening a database stored on a network share.
This utility is going to be used by multiple people, and thus is going to reside on a server. Users will then browse to the server and run the...
I'd like to be able to kill a process that's running on a networked machine. I can't use the Process class though, as it says that function isnt supported on remote computer.
Anyone have any ideas?
As always, thank you very much for taking the time to help :)
I've got a method I wrote with the intended purpose of restarting a service.
Since I can't find a restart() method of the ServiceController class, my approach was to stop the service and then start it using the stop and start methods. This doesnt seem to be working though...
Any thoughts...
I got such a helpful and professional response from my last question here... i thought i'd come back :)
My question this time is in regards to creating and modifying dword values in the windows registry. I can use the following function to write string values, but I need to be able to write...
Say i'm writing a program that depends on a few other .exe and .dll files to work correctly. Instead of including those in the same directory as my app, i'd like to have my app "generate" those files. Thus making it more robust, portable, and secure.
Is this possible? I've played around with...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.