473,387 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Emailing a form in Visual Basic 2005 Express

I am brand new to programming and was hoping that someone could tell me how
to take the next step in my windows application. I need to be able to email
not just the contents of a form but an image, if you will, of the entire
form. I have a form that my users will fill out and which contains labels as
well as text fields. I have the program configured to email me and that part
is working. I now need to figure out how to get the program to email that
entire form and all of its contents to me. Below is a sample of my code.
Imports System.Net.Mail
Public Class AdmissionsFinancialCounselor

Private Sub Label12_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Label12.Click
Dim F2 As New MS4AdmiFinCoun

F2.ShowDialog()
End Sub

Private Sub Label15_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Label15.Click
Dim F2 As New MisysRad
F2.ShowDialog()

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim message As New MailMessage("ea**@sutterhealth.org",
"ha*****@sutterhealth.org", "Account Request Form", "Account Request Form")
Dim emailClient As New SmtpClient("dcsh1ex")
emailClient.Send(message)

MsgBox("Email Sent!")
End Sub
Private Sub AdmissionsFinancialCounselor_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub
End Class
Someone please help if you know what I'm talking about?

Nov 19 '07 #1
2 1453
That's an example to do a screen capture.
http://www.vbdotnetheaven.com/Upload...uringForm.aspx

The next step is to save it to a temporary file, add it as an atatchement,
complete the email process and then remove the temporary file.

Regards,

Trevor Benedict
MCSD
"Krystal VB Newbie" <Krystal VB Ne****@discussions.microsoft.comwrote in
message news:09**********************************@microsof t.com...
>I am brand new to programming and was hoping that someone could tell me how
to take the next step in my windows application. I need to be able to
email
not just the contents of a form but an image, if you will, of the entire
form. I have a form that my users will fill out and which contains labels
as
well as text fields. I have the program configured to email me and that
part
is working. I now need to figure out how to get the program to email that
entire form and all of its contents to me. Below is a sample of my code.
Imports System.Net.Mail
Public Class AdmissionsFinancialCounselor

Private Sub Label12_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Label12.Click
Dim F2 As New MS4AdmiFinCoun

F2.ShowDialog()
End Sub

Private Sub Label15_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Label15.Click
Dim F2 As New MisysRad
F2.ShowDialog()

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim message As New MailMessage("ea**@sutterhealth.org",
"ha*****@sutterhealth.org", "Account Request Form", "Account Request
Form")
Dim emailClient As New SmtpClient("dcsh1ex")
emailClient.Send(message)

MsgBox("Email Sent!")
End Sub
Private Sub AdmissionsFinancialCounselor_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub
End Class
Someone please help if you know what I'm talking about?

Nov 20 '07 #2
Krystal,

You are using the default mail client at the moment. However, you cannot use
attachments on the default may client.
http://www.systemnetmail.com/

Have a look at this website.

Cor

Nov 20 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bootstrap Bill | last post by:
A new Google group has been formed for the purpose of discussing the new Visual Studio Express products. http://groups-beta.google.com/group/Visual-Studio-Express The products are currently in...
6
by: Brian Henry | last post by:
Visual Basic 2005 Express: http://download.microsoft.com/download/f/c/7/fc7debaf-4513-4300-9e6a-8fe27be88cd1/vbsetup.exe Visual C# 2005 Express:...
4
by: Andrew Robinson | last post by:
My main dev machine has WinXp and VS2005 (pro). 1. I need to install VWD Express Edition so that I can do some instruction on this. Any issues with both on the same machine. Installation order?...
3
by: Crazy Cat | last post by:
Hi, I'm developing an application that is basically a VB.NET front end to a SQL Server Express 2005 database -- right now I'm using VB.NET 2005 Express until my MSDN subscription gets delivered...
2
by: Progman | last post by:
I have Visual Studio 2005 Standard edition. Is ti the same thing as the Express edition or Standard is more?
8
by: Zardax | last post by:
Hi !!! I need to know if there is compatibility between VB 6.0 and Visual Basic 2005 Express Everything I need is to compile the VB 6.0 code in Visual Basic 2005 Express without re-write the...
3
by: Comteck | last post by:
I am quite proficient at programming Visual Basic for Microsoft Access. I am currently learning Visual Basic 6, and would like to be able to take my database files from Access, and re-write them...
11
by: research | last post by:
Hi, I'm using Visual Basic 2005 Express Edition to develop small tools in relation with our applications and I'm facing a problem using the interface. It sometimes happens that the design...
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.