Public Class Form1
Private Sub BtNDEKRIPSI_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtNDEKRIPSI.Click
plain.Text = ""
Dim x As String
Dim bil As Integer
For i = 1 To Len(chiper.Text)
x = Microsoft.VisualBasic.Mid(chiper.Text, i, 1)
bil = Asc(x)
bil = bil - 3
x = Chr(bil)
plain.Text = plain.Text & x
Next i
End Sub
Private Sub BTNHAPUS_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BTNHAPUS.Click
chiper.Text = ""
plain.Text = ""
End Sub
Private Sub BTNKELUAR_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BTNKELUAR.Click
End
End Sub
End Class
Tidak ada komentar:
Posting Komentar