TCP/IP is a set of network protocols which is best known for connecting the machines that make up the Internet. The truth is that TCP/IP is one of the oldest network protocols and its survival is mainly based on its simplicity and universality.
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.