Thank you, Orjan, for the suggestion. I hadn't thought about the PropertyGrid control. I'll look at the links more in depth here in a little bit. Currently I'm at work and have some things to get done throughout the day. But thanks for the info, I'll keep that in mind.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.
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.