Gambling
https://www.flipkart.com/realme-3-pro-lightning-purple-64-gb/p/itmfgzr2jckcttnx?pid=MOBFFMG3H499XJZY&srno=b_1_1&otracker=hp_omu_Top%2BOffers_1_3.dealCard.OMU_WYRHQN9SP4EX_3&otracker1=hp_omu_PINNED_neo%2Fmerchandising_Top%2BOffers_NA_dealCard_cc_1_NA_view-all_3&lid=LSTMOBFFMG3H499XJZYWPM7DZ&fm=neo%2Fmerchandising&iid=6ae4bae1-fb00-4df5-99a5-f8da0f11a805.MOBFFMG3H499XJZY.SEARCH&ppt=browse&ppn=browse&ssid=ttxnoph43s2x69s01571763522573

Friday 6 June 2014

PASSWORD CODING IN VB6



This post is about how to set password in vb6. Here is coding given with example and image clearly.

CODE-




Option Explicit
Dim realpassw As String
Dim ichance As Integer



Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
realpassw = "ramramji"
Text1.PasswordChar = "#"
PASSWORD.Height = 11520
PASSWORD.Left = 0
PASSWORD.Top = 0
PASSWORD.ScaleHeight = 11010
PASSWORD.ScaleLeft = 0
PASSWORD.ScaleTop = 0
PASSWORD.ScaleWidth = 19080
PASSWORD.Width = 19200
End Sub

Private Sub Command1_Click()
If Text1 = realpassw Then
Label1 = "succed"
SSS.Show
Unload Me
Exit Sub
Else
Label1 = "login failed"
MsgBox "password incurrect"
ichance = ichance + 1
If ichance = 3 Then Unload Me
End If
End Sub

0 comments:

Post a Comment