i have use below code to make sure the listview only contain 3 record n if more than 3 records to prompt error message and disable the NEXT TRANSACTION button. it works well. But the problem is when i delete 1 record out of 3 it suppose enable the NEXT TRANSACTION button but the button is still disable. whats wrong with my code...i code it at form Shown......Please guide me !!!
If ListView1.Items.Count = 3 Then Panel1.Enabled = False frmPopup.lblErrMsg.Text = GetButtonText("Only 3 transaction alloweded") frmPopup.YesNo = False frmPopup.QorEx = False frmPopup.ShowDialog() Else Panel1.Enabled = True 'tmrShowTimeOutDlg.Enabled = False frmStep1_AgencyDirect.Show() Me.Close() End If