Jump to content

Coding a change password form

- - - - -

  • Please log in to reply
10 replies to this topic

#1
InternetGeek

InternetGeek

    Newbie

  • Members
  • Pip
  • 5 posts
Hi,

I am trying to code a change password form on VB6 but I am not having much luck with it.

The change password form is a separate form (frmChangePassword) to the login form but it can be accessed by a button on the login form (frmPassword). I have declared the password variable as a global variable so it could be accessed in all forms, but for some reasons, the change password form is not reading the password variable from the login form.

Any ideas?

Edit: While we on it, how do I remove a background picture from a form which is set using the properties box?

Attached Files



#2
dirkfirst

dirkfirst

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 354 posts
You have to put a mask in for the password to show with a mask.

You type: jj88
It shows: ****

Thats what you wanted right? I don't have VB6 or I would post a screenshot.

#3
InternetGeek

InternetGeek

    Newbie

  • Members
  • Pip
  • 5 posts
No... the masking is fine.

What I mean was I cannot access the supposely global variable in the other form as the passsword variable is stored in another from- separate to the change password form.

When changing password, the old password needs to by entered and then the new password is to be entered twice, if these are correct, then the password can be changed. For some reason, the password cannot be changed, even though the old password is entered correctly. (Its the old password's fault here, not the new password verification)

I have also tried to declare the global variable using a module (Global password as string) but this does not seem to work either.

#4
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
I might be able to help you if you upload the code.

#5
dirkfirst

dirkfirst

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 354 posts
Could you post the code? I'm not sure I understand but it sounds like you want to retrieve a variable from one PHP form in another? Or are you trying to get the POSTED value of the password?

#6
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Sorry man what has PHP to do with VisualBasic?

#7
jedik

jedik

    Newbie

  • Members
  • PipPip
  • 13 posts
See friend I know .NET and what I can tell you from that end is that you better create an Object for the frmPassword page and then use the object to do the modifications. It will work smoothly.

#8
InternetGeek

InternetGeek

    Newbie

  • Members
  • Pip
  • 5 posts
Thanks for the help people. But I have sorted it out myself.

#9
datijn123

datijn123

    Newbie

  • Members
  • Pip
  • 1 posts
DOes someone know how to read a php script in vb6? I made a pw protected php page, and now I wanna insert this in my vb6 project.

#10
jaykishan_82

jaykishan_82

    Newbie

  • Members
  • Pip
  • 2 posts
I am also looking for the password coading form

#11
jireh

jireh

    Newbie

  • Members
  • PipPip
  • 18 posts
InternetGeek.
As what you've said you already solved your problem. how about post your code here so that if anyone has with the same problem then it can help him...am i right?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users