M
Michael.Suarez
Suppose I have a program that prompts you with a dialogbox to enter a
password. If you get the password correct, it allows you into the
program, else it kills the program.
Suppose that when I am in Visual Studio, running the program in debug
mode, i want to bypass the password prompt because if i am the
developer, i am definately allowed to use the program.
I assumed that I could use the this.DesignMode property while in my
main forms load event, to let me know whether I was running the program
through visial studio or not, but DesignMode seems to be returning
false whether i am in debug mode or not.
Any suggestions on how to tell if i am running through VS so i can
accomplish this?
Thanks,
Mike
password. If you get the password correct, it allows you into the
program, else it kills the program.
Suppose that when I am in Visual Studio, running the program in debug
mode, i want to bypass the password prompt because if i am the
developer, i am definately allowed to use the program.
I assumed that I could use the this.DesignMode property while in my
main forms load event, to let me know whether I was running the program
through visial studio or not, but DesignMode seems to be returning
false whether i am in debug mode or not.
Any suggestions on how to tell if i am running through VS so i can
accomplish this?
Thanks,
Mike
