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...
Thanks rdgerken... i might have to look into that if I can't find a better programmatic solution.
obislavu: I've got the right privelages. Did you try that code and it worked for you?
Thanks for the help guys... it's very much appreciated!
Thanks for the reply. I may have to consider your first example, but would like to avoid it at all costs as that would be a security breach.
I am not able to get your second example to work however. I tried something similar to this before posting. The framework's process class doesnt seem...
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...
Well i was able to figure out my problem... turns out it didnt have anything to do with invoking or multithreading.
But it would still be nice to know how to invoke methods with parameters if someone knows how!
Thanks!!
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...
Is that something that can be changed by the program at runtime? Obviously that would be a security flaw if it could just give itself permissions to do anything... but perhaps with a username/pass of an account with administrator access?
Thanks for the replies Rick... your input is much...
I may have to look into the touchless deployment idea... but I dont see how I could even implement a self updating version. I doubt it would let me copy a file with the level of security that's being afforded to my app.
It won't even let me do an Application.Exit() when it's not on the local...
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.