Write VB.NET program to take three text boxes and two buttonson the form. Enter differnet string in first and second textbox.On clicking the First command button , concatenation of two string should be displayed in third text box and on clicking second command button,reverse of string should display in third text box.


Public Class frmtext


   

    Private Sub btnconcat_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnconcat.Click

        TextBox3.Text = String.Concat(TextBox1.Text, TextBox2.Text)


    End Sub


    Private Sub btnrev_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnrev.Click

        Dim x, p, z As String

        Dim y() As Char

        Dim i As Integer


        x = TextBox1.Text

        z = TextBox2.Text

        p = x + z

        ReDim y(p.Length)


        For i = 0 To p.Length - 1

            y(i) = p(p.Length - i - 1)


        Next

        TextBox3.Text = y


    End Sub


    Private Sub btnexit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnexit.Click

        End

    End Sub

End Class


    
Write VB.NET program to take three text boxes and two buttonson the form. Enter differnet string in first and second textbox.On clicking the First command button , concatenation of two string should be displayed in third text box and on clicking second command button,reverse of string should display in third text box. Write VB.NET program to take three text boxes and two buttonson the form. Enter differnet string in first and second textbox.On clicking the First command button , concatenation of two string should be displayed in third text box and on clicking second command button,reverse of string should display in third text box. Reviewed by on April 27, 2015 Rating: 5
Powered by Blogger.