Thursday, December 15, 2011

Case Conversion

1. Construct the user interface:



2. Enter the code as follows:


Public Class frmCaseConversion

Private Sub btnConvert_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConvert.Click

txtLcase.Text = Microsoft.VisualBasic.LCase(txtInput.Text)
txtUcase.Text = Microsoft.VisualBasic.UCase(txtInput.Text)
txtPcase.Text = Microsoft.VisualBasic.StrConv(txtInput.Text, VbStrConv.ProperCase)
End Sub

End Class

3. Save and Run..

No comments:

Post a Comment