Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create a change password Button??
#1
I have created an application and have added a login form to it so that If you want to access that application you will first need to enter username and password.
Also i have added a button to main application named "Change Password"
But i dont know how to change the real password of form to the password that user types in "change password" dialog box
So can anybody please help me.

Anyway,
Thanks everybody you hv earlier taken interest in my topics!!!!!!!
The Power to Believe in Yourself is the Power to change the Fate!
#2
What kind are you using? are you using a database? or do you use a simple if end if statement? be more specific
Website: <!-- m --><a class="postlink" href="http://www.PBAProductions.com">http://www.PBAProductions.com</a><!-- m -->
E-Mail: <!-- e --><a href="mailtoTongueatrick@AriSystems.Org">Patrick@AriSystems.Org</a><!-- e -->
Skype: Qwaxer
Youtube: Qwaxer
[Image: 2hnx8av.jpg]
#3
If you are using an If statement for your password, you could do something like this.
Code:
'Global
public password as string = "pass"
'Login
if textbox1.text = password then
MsgBox("Correct!")
else
Msgbox("Incorrect!")
'Change password (Where textbox2 is your new password)
password = textbox2.text
MsgBox("Password Changed!")
My Blog | My Setup | My Videos | Have a wonderful day.
#4
Hi Brandon Milton

Actually your method works but i want that when a user changes the password it permanently changes .
That is
after applying your method when i restarted the application the changed password didn't worked .


And also thanks for replying to my post
-Himansh
The Power to Believe in Yourself is the Power to change the Fate!
#5
Well then you're probably going to want to use the same method I mentioned above, but instead of using a local variable, use a Setting. These can be accessed by
Code:
My.Settings.
And can be created in Project>Project Properties>Settings
My Blog | My Setup | My Videos | Have a wonderful day.
#6
Hi brandon

I applied your given method and created a new variable called
Password in my projects>properties>settings and entered its value as my default password

Then i replaced "password" with
My.setting.password
Now after installing the application i changed the password but it still don't change after we restart application.

If you don't understand what i am saying then i am mailing you my projects files .
You can yourself check that out .
And also thanks for all the help you have provided to me.

The mail subject will be
My text encryptor
The Power to Believe in Yourself is the Power to change the Fate!
#7
Alright, I looked into your project file, and turns out you just needed one line of code that I forgot to tell you about. Just insert this code everytime you change the password
Code:
My.Settings.Save()

That will save all of the settings so they can be used when the application restarts!
My Blog | My Setup | My Videos | Have a wonderful day.
#8
Thanxxxxxxxxxxx a Lot buddy.

Now i am also going to add your name in my about box of text encryptor!!
And will also mention your site!!!!

Because without your Invaluable help this project wouldn't have Finished.

Thanks to you again.

-Himansh
The Power to Believe in Yourself is the Power to change the Fate!
#9
I am glad to help!
My Blog | My Setup | My Videos | Have a wonderful day.


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to Make button performs keyboard Button Functions? Himansh 1 9,621 09-15-2012, 10:57 AM
Last Post: brandonio21
  HTML - Editor How to create "Preview in Webbrowser " Button Himansh 2 12,574 05-21-2012, 12:08 AM
Last Post: Himansh
  Create a new file Covert2String 5 19,992 04-11-2012, 02:47 PM
Last Post: brandonio21
  How to code a print Button? Himansh 1 9,867 04-01-2012, 01:16 PM
Last Post: brandonio21
  How to add code to Cross(X) button on a form Himansh 3 14,876 03-27-2012, 11:06 PM
Last Post: brandonio21
  How to create a software like lockNote Himansh 0 6,134 03-22-2012, 11:49 PM
Last Post: Himansh

Forum Jump:


Users browsing this thread: 1 Guest(s)