My Question: How to make TextBox2.Text displaythe same text if in TextBox1.Text i have, lets say "Test" on my first button click and "test" on my second. I want to make it do so without having to write the code again:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = "Test" Then
TextBox2.Text = "Random Random Random"
Else
TextBox2.Text = "Other Random"
End If
If TextBox1.Text = "test" Then
TextBox2.Text = "Same Random Random Random"
Else
TextBox2.Text = "Same Other Random"
End If
End Sub
Thank You!

New Topic/Question
Reply



MultiQuote








|