You are on page 1of 1

=== Cek tekbox kosong==

cara cek textbox kosong vb6


moga berguna
Private Sub CekTextBoxKosong()
Dim ctrAs Control

For Each ctr In Me.Controls


If TypeOf ctr Is TextBox Then
If ctr.Text= vbNullString Then
MsgBox "Textbox ini kosong"

ctr.SetFocus

Exit Sub

End If
End If
Next ctr

End Sub

You might also like