var sc = new System.ServiceProcess.ServiceController("ELSRegressionService");
Its working fine, when logged in with Administrator credentials. If I login with other user credentials, it throws exception, "Cannot open Servicexxx service on computer 'COMPUTER_NAME'"
I would like to ask for credentials before the user tries to start service. So please guide me to check for credentials to start windows service programmatically. Thanks in advance
If you need administrator privilege only for starting the service, you could delay request for elevation till you need it. This can be done by starting a new process and setting ProcessStartInfo.Verb[^] to runas. This new process can execute the code to start/stop the service. You need the new process because you can't change elevation levels of the current process while it is running.
Yes you can. But you need to know how many axes the robot has and how to move the axes. If you bought the robot from a third party then they will be giving you the interface lib to communicate with the robot. some vendors sell C++ interface some have .Net libraries.
I doubt any one here go to your link and download the files from a unknown link. It's better you to update your query with some more details about the current design of your game so that others can see it and suggest a better method for you.
for example this function are for change picture
this function in from1 :
public void tas_pic()
int rand = tas.taas();
for (int i = 1; i <= 6; i++)
PictureBox picbox = ((PictureBox)this.Controls["pb" + i.ToString()]);
picbox.Visible = false;
PictureBox picboxtas = ((PictureBox)this.Controls["pb" + rand.ToString()]);
picboxtas.Visible = true;
i cant move to a class as method and use this method in form1
What should I do?
If you don't want to decrypt the video to disk, play it, then delete the decrypted version (which pretty much destroys the point of even encrypting it in the first place!), then you'll have to write a codec which you build into the graph that's going to decode and play the video and audio.
This is NOT for a beginner and you are not going to be writing it in anything but C/C++. Using managed code to write this would be a much bigger pain than it's worth.
Usually you temporarily decrypt the file... play it on any player... then encrypt it when done and get rid of the file. You could decrypt as you go if you make a codec, I believe someone else already suggested that, but that's probably not as common as you might think it is.
Make your subject descriptive of your problem: "Help" is not very useful as we already know you need help - or you wouldn't be asking... Perhaps in this case "Fingerprint reading for WinForms" would be better?
Then, give us details: remember that we can't see your screen, access your HDD, or read your mind - so give us all the relevant information. In this case, the make and model of your reader would probably help, as well as what you have tried so far, and what problem you have found.
Just asking "can some one help me about the finger print code" makes it look like you have done nothing yourself and want us to do your job for you. This can annoy a lot of people and isn't likely to get you a good response. Show us you have tried, show us what help you need!
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
Last Visit: 31-Dec-99 18:00 Last Update: 27-Sep-23 9:48