1
Answer

How do I write this for C#?

Shang Fields

Shang Fields

17y
1.9k
1

I have been at this all day.  Trying to write it to work for C# feedback page.

Protected Sub Wizard1_FinishButtonClick(object sender, WizardNavigationEventArgs e)


   SendMail(txtEmail.Text, txtComments.Text)

End Sub


Private Sub Sendmail(ByVal from As String, ByVal body As String)

    Dim mailServerName As String = "company.company.com" 
    Dim message As MailMessage = New MailMessage(from, "john@mong.com")
    Dim mailClient As SmtpClient = New SmtpClient


    mailClient.Host = mailServerName
    mailClient.Send(message)
    message.Dispose


 End Sub
End Class
Answers (1)
0
Administrator
Admin 2.3k 1.3m 22y
Do some readings on regions and invalidating and clipping regions. You certainly don't want to load every thing on the form if you only need a small portion of the form to be rendered.