hello everyone
the extract of code shown below throws an error when i don't include the "demo" (the title name of the dialog box), why does it do so? isn't it supposed to be an optional detail? otherwise the code seems to work fine.
the extract of code shown below throws an error when i don't include the "demo" (the title name of the dialog box), why does it do so? isn't it supposed to be an optional detail? otherwise the code seems to work fine.
VB.NET:
If MessageBox.Show("r u sure to delete " & selectedcustomer.name & "? ", "demo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) = DialogResult.Yes Then
Dim deletecustomer As customer = selectedcustomer
_customers.Remove(deletecustomer)
ListBox1.Items.Remove(deletecustomer)
End If