download gratis video tutorial vb 6 dan vb.net plus contoh aplikasi

menghitung jumlah huruf tertentu

HURUF

 

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox2.Text = Microsoft.VisualBasic.Len(TextBox1.Text) - Microsoft.VisualBasic.Len(Replace(TextBox1.Text, "A", ""))
End Sub