0

hi,

How do i do if there is no record in listview i should disable the payment button. TQ

If ListView1.Text = "" Then
            paymentBtn.Enabled = False
            MsgBox("No Transaction")
        End If
2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by Oxiegen
0

Perhaps if you check the number of items in the listview?

If ListView1.Items.Count = 0 Then
   paymentBtn.Enabled = False
Else
   paymentBtn.Enabled = True
End If

Edited by Oxiegen: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.