daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     Private Sub DeleteEmailMenuItem_Click(sender As Object, e As EventArgs) Handles DeleteEmailMenuItem.Click
  2.         If AllowSaving = False Then Exit Sub
  3.         Dim taEmailAddresses As New dsEmailManagerTableAdapters.EmailAddressesTableAdapter
  4.  
  5.         If MessageBox.Show("Are you sure you want to delete the selected entries?", "HPD Alerts", MessageBoxButtons.YesNo, MessageBoxIcon.Question) = Windows.Forms.DialogResult.Yes Then
  6.             Dim EMailID As Integer = lstEmails.SelectedItem("EmailID")
  7.             taEmailAddresses.DeleteEmailAddress(EMailID)
  8.             PopulateEmailsListBox()
  9.             lstEmails.ClearSelected()
  10.             PopulateEmailCheckBoxes()
  11.         End If
  12.     End Sub
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top