how to recover AND CHANGE THE password?????

i want the code for a login and change password and i want to recover the password how should i do it in WINDOW APPLICATION C# what is the code?????????????? i want this for window application using a form(WINDOW APPLICATION)HOW TO RECOVER PASSWORD IF FORGETHOW TO CHANGE PASS WORD