|
-
Mar 14th, 2010, 03:13 PM
#1
Thread Starter
New Member
tranfer form from vb 2010 to powerpoint
Hi,
I am using VB 2010 and made a contact form with message box which links to my email when someone inserts a comment in the box and when clicks submit it goes through to my email. however i want to put this contact form on my power point so that when you get to the end of it you can post comments that come to my email but when i copy the code from vb 2010 to vb in power point using the button and text fields in power point the contact form no longer works which i made in vb 2010. if it is not possible any suggestions on how to make something similar to this in power point vb? here is the code.....
Imports System.Web
Imports System.IO
Imports System.Net.Mail
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim MymailMessage As New MailMessage
Try
MymailMessage.From = New MailAddress("[email protected]")
MymailMessage.To.Add("[email protected]")
MymailMessage.Subject = TextBox2.Text
MymailMessage.Body = TextBox1.Text + vbNewLine + TextBox3.Text
Dim SMTP As New SmtpClient("smtp.googlemail.com")
SMTP.Port = 587
SMTP.EnableSsl = True
SMTP.Credentials = New System.Net.NetworkCredential("[email protected]", "imcimc3875")
SMTP.Send(MymailMessage)
TextBox2.Text = ""
MsgBox("Your Message Was Sent!", MsgBoxStyle.Information, "infomation")
Catch ex As Exception
End Try
End Sub
End Class
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|