Ho provato a leggere il link che mi hai dato ma come ho scritto prima non ho capito nulla.
inoltre il problema si presenta su tutti i bottoni ma solo quando vengono cliccati
ora posto i codici di ogni form collegato a bottoni
codice:
Public Class Form1
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Label1_Click(sender As System.Object, e As System.EventArgs) Handles Label1.Click
End Sub
Private Sub Label2_Click(sender As System.Object, e As System.EventArgs) Handles Label2.Click
End Sub
Private Sub Panel1_Paint(sender As System.Object, e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint
End Sub
End Class
codice:
Public Class form2
Dim openfile As New OpenFileDialog
Private Sub Label1_Click(sender As System.Object, e As System.EventArgs) Handles Label1.Click
End Sub
Private Sub CheckBox2_CheckedChanged(sender As System.Object, e As System.EventArgs) Handles CheckBox2.CheckedChanged
End Sub
Private Sub Label6_Click(sender As System.Object, e As System.EventArgs) Handles Label6.Click
End Sub
Private Sub Panel1_Paint(sender As System.Object, e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint
End Sub
Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
openfile.ShowDialog()
Try
TextBox1.Text = openfile.FileName
Catch ex As Exception
End Try
End Sub
Private Sub CheckBox9_CheckedChanged(sender As System.Object, e As System.EventArgs) Handles CheckBox9.CheckedChanged
End Sub
Private Sub TextBox1_TextChanged(sender As System.Object, e As System.EventArgs) Handles TextBox1.TextChanged
End Sub
End Class
codice:
Public Class Form3
Private Sub Panel1_Paint(sender As System.Object, e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint
End Sub
End Class
codice:
Public Class Form4
Private Sub Panel1_Paint(sender As System.Object, e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint
End Sub
End Class
codice:
Imports System.Net
Imports System.Net.Mail
Public Class Form5
Dim openfile As New OpenFileDialog
Dim posta As New MailMessage()
Private Sub Panel1_Paint(sender As System.Object, e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint
End Sub
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
Dim smtpServer As New SmtpClient()
posta = New MailMessage
posta.From = New MailAddress(TextBox4.Text)
posta.To.Add("andrea.moro1989@gmail.com")
posta.Subject = "Problema servizio di un cliente:" & TextBox2.Text
posta.Priority = MailPriority.High
posta.Body = RichTextBox1.Text
smtpServer.Credentials = New Net.NetworkCredential("andrea.moro1989@gmail.com", "XXXXXXXX")
smtpServer.Port = 587
smtpServer.Host = "smtp.gmail.com"
smtpServer.EnableSsl = True
If TextBox3.Text = "" Then
Else
posta.Attachments.Add(New Attachment(TextBox3.Text))
End If
smtpServer.Send(posta)
MsgBox("La Mail è Stata Inviata!", MsgBoxStyle.Information, "Mail")
End Sub
Private Sub Label3_Click(sender As System.Object, e As System.EventArgs) Handles Label3.Click
End Sub
Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
openfile.ShowDialog()
Try
TextBox3.Text = openfile.FileName
Catch ex As Exception
End Try
End Sub
Private Sub TextBox4_TextChanged(sender As System.Object, e As System.EventArgs) Handles TextBox4.TextChanged
End Sub
Private Sub Form5_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub ComboBox1_SelectedIndexChanged(sender As System.Object, e As System.EventArgs)
End Sub
Private Sub Label1_Click(sender As System.Object, e As System.EventArgs) Handles Label1.Click
End Sub
End Class
codice:
Public Class Form6
Private Sub Label1_Click(sender As System.Object, e As System.EventArgs) Handles Label1.Click
End Sub
Private Sub RichTextBox1_TextChanged(sender As System.Object, e As System.EventArgs)
End Sub
Private Sub Panel1_Paint(sender As System.Object, e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint
End Sub
End Class
codice:
Public Class Form7
Private Sub Panel1_Paint(sender As System.Object, e As System.Windows.Forms.PaintEventArgs) Handles Panel1.Paint
End Sub
End Class
codice:
Public Class Avvio
Private Sub Avvio_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Avvio_MouseDoubleClick(sender As System.Object, e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseDoubleClick
Me.Close()
End Sub
Private Sub Panel1_MouseDoubleClick(sender As System.Object, e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseDoubleClick
Me.Close()
End Sub
Private Sub PictureBox2_Click(sender As System.Object, e As System.EventArgs) Handles PictureBox2.Click
End Sub
Private Sub PictureBox1_Click(sender As System.Object, e As System.EventArgs) Handles PictureBox1.Click
End Sub
End Class