Communication across every corner of your business is essential to increase the velocity of your application delivery and support pipeline. Automate, standardize, and contextualize your communication processes with xMatters.
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.