-
Mar 8th, 2018, 03:32 AM
#1
Thread Starter
Lively Member
[RESOLVED] login form from another function
guys,
I can easily use the input box method for taking the PIN. But that is not helping as INPUT method does not support password masking. So here it is:
Code:
Public Sub checkCard()
Public Function Authenticate() As Integer
If (pinVerification(userPIN)) Then
Return 1
Else
end if
end Sub
Public Function pinVerification(ByVal pin As String) As Boolean
Dim message, title, defaultValue As String
Dim passCode As Object
' Set prompt.
message = "Enter the PIN code"
' Set title.
title = "Authentication"
defaultValue = "" ' Set default value.
' Display message, title, and default value.
passCode = InputBox(message, title, defaultValue) ---> This is where I want to make the change
' If user has clicked Cancel, set myValue to defaultValue
If passCode Like "" Then
passCode = defaultValue
End If
'If passCode Like defaultValue Then
'MsgBox("Wrong Passcode", MsgBoxStyle.OkOnly, "Alert!")
'End If
If (String.Compare(passCode, pin) = 0 And isLockeddown = False) Then
Return True
Else
Return False
End If
end sub
so, the function call and returns are the things that i want, but this should be also via a std form for password masking.
any ideas??
-
Mar 8th, 2018, 03:52 AM
#2
Re: login form from another function
Follow the CodeBank link in my signature below and check out my WinForms Login thread.
-
Mar 8th, 2018, 05:10 AM
#3
Thread Starter
Lively Member
Re: login form from another function
Originally Posted by jmcilhinney
Follow the CodeBank link in my signature below and check out my WinForms Login thread.
can you give a link?
-
Mar 8th, 2018, 06:22 AM
#4
Re: login form from another function
For me to provide you with a direct link, I would have to click the aforementioned CodeBank link in my signature and then look down the list of threads until I found the right one. Why are you any less able to do that than I am?
-
Mar 8th, 2018, 11:51 AM
#5
Thread Starter
Lively Member
Re: login form from another function
Originally Posted by jmcilhinney
For me to provide you with a direct link, I would have to click the aforementioned CodeBank link in my signature and then look down the list of threads until I found the right one. Why are you any less able to do that than I am?
ONLY a form comes and nothing else
-
Mar 8th, 2018, 01:28 PM
#6
Re: login form from another function
Then you probably didn't do something right. But since you didn't show us the code you DID try, it would be foolish for us to try and help.
-tg
-
Mar 9th, 2018, 03:13 PM
#7
Thread Starter
Lively Member
Re: login form from another function
I just finished it all by myself!! Perfectly working!! Thanks for the help and response!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|