Hi
I'm trying to write a simple application to manage the password on an account. I need a program that is able to set the password on a domain account (password is calculated by the program, based on a number of variables). However, it should also be able to show a form that allows to retrieve the calculated password for a given set of variables.
I tried writing the same code both for "console application" and "windows application" using command line parameters to determine the program use. No parameters = show the form, parameters = set the password. However I just can not get this to work (and the .exe is not even running as a service yet). Either the form is shown even when a parameter is given or no form is ever shown..
Can someone please advise how to write this? I'm not used to write in Visual Studio so I may be writing a wrong application type. I just need to know how to obtain an .exe that executes code with a command line parameter and shows a form without parameters.
Thanks for any tips!
I'm trying to write a simple application to manage the password on an account. I need a program that is able to set the password on a domain account (password is calculated by the program, based on a number of variables). However, it should also be able to show a form that allows to retrieve the calculated password for a given set of variables.
I tried writing the same code both for "console application" and "windows application" using command line parameters to determine the program use. No parameters = show the form, parameters = set the password. However I just can not get this to work (and the .exe is not even running as a service yet). Either the form is shown even when a parameter is given or no form is ever shown..
Can someone please advise how to write this? I'm not used to write in Visual Studio so I may be writing a wrong application type. I just need to know how to obtain an .exe that executes code with a command line parameter and shows a form without parameters.
Thanks for any tips!