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 Form1 Private Sub txtno_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtno.KeyPress Dim c As Char c = e.KeyChar Select Case (c) Case "a" lblmsg.Text = "vowel" Case "A" lblmsg.Text = "vowel" Case "e" lblmsg.Text = "vowel" Case "E" lblmsg.Text = "vowel" Case "i" lblmsg.Text = "vowel" Case "I" lblmsg.Text = "vowel" Case "o" lblmsg.Text = "vowel" Case "O" lblmsg.Text = "vowel" Case "u" lblmsg.Text = "vowel" Case "U" lblmsg.Text = "vowel" Case Else lblmsg.Text = "this is not a vowel" End Select 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.
Reviewed by
on
April 27, 2015
Rating: