We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Private Sub BindingNavigatorDeleteItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BindingNavigatorDeleteItem.Click If MessageBox.Show("Are you sure you want to delete Note for Project" + vbCrLf + "Project Name: " & Me.ProjectNameTextBox.Text & vbCrLf & "Note added by: " & Me.NoteAddedByTextBox.Text, "Attention", MessageBoxButtons.YesNo, MessageBoxIcon.Question) = Windows.Forms.DialogResult.No Then 'If no then stop the process Exit Sub Else 'If yes then delete the record, but send me and email message of the Project that was deleted Dim lSlash As Integer = rName.LastIndexOf("\") Dim fName As String = rName.Substring(lSlash + 1) Dim emailfrm As String = fName & "@somedomainName.com" Dim myMailMessage As New MailMessage(emailfrm, "My email address") myMailMessage.Priority = MailPriority.High myMailMessage.Subject = "Deleted Note" Dim bodyText As String = Me.ProjectName_TextBox.text Dim smtpServer As New smtpClient("Server Name") smtpServer.Send(myMailMessage) End If End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.