MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
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.