VS 2017 Textbox Validation-VBForums
Results 1 to 8 of 8

Thread: Textbox Validation

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2018
    Posts
    4

    Textbox Validation

    Hey guys, I need help. I'm trying to make validation to few textbox in VS 2017 but i'm noob with VB.
    This is my code:
    Code:
    Public Class form1
        ' define the local key and vector byte arrays
        Private ReadOnly key() As Byte =
          {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
          15, 16, 17, 18, 19, 20, 21, 22, 23, 24}
        'Private ReadOnly iv() As Byte = {8, 7, 6, 5, 4, 3, 2, 1}
        Private ReadOnly iv() As Byte = {255, 70, 60, 50, 40, 30, 20, 10}
        ' instantiate the class with the arrays
        Private des As New cTripleDES(key, iv)
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            TextBox2.Text = des.Encrypt(TextBox1.Text)
        End Sub
    
        Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            TextBox2.Text = des.Decrypt(TextBox1.Text)
        End Sub
    
        Private Sub TextBox2_TextChanged(sender As Object, e As EventArgs) Handles TextBox2.TextChanged
            Clipboard.SetText(TextBox2.Text)
        End Sub
    
        Private Sub form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    
        End Sub
    
        Private Sub Label2_Click(sender As Object, e As EventArgs) Handles Label2.Click
    
        End Sub
    
        Private Sub LinkLabel1_LinkClicked(sender As Object, e As LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
            Process.Start("testtesttest")
        End Sub
    
        Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
    
        End Sub
    
        Private Sub Label1_Click(sender As Object, e As EventArgs) Handles Label1.Click
    
        End Sub
    End Class
    Last edited by Shaggy Hiker; Feb 9th, 2018 at 02:38 PM. Reason: Added CODE tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width