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 AdmissionsFinan cialCounselor
Private Sub Label12_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Label12.Click
Dim F2 As New MS4AdmiFinCoun
F2.ShowDialog()
End Sub
Private Sub Label15_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Label15.Click
Dim F2 As New MisysRad
F2.ShowDialog()
End Sub
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
Dim message As New MailMessage("ea **@sutterhealth .org",
"ha*****@sutter health.org", "Account Request Form", "Account Request Form")
Dim emailClient As New SmtpClient("dcs h1ex")
emailClient.Sen d(message)
MsgBox("Email Sent!")
End Sub
Private Sub AdmissionsFinan cialCounselor_L oad(ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
End Sub
End Class
Someone please help if you know what I'm talking about? 2 1468
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****@discussi ons.microsoft.c omwrote in
message news:09******** *************** ***********@mic rosoft.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 AdmissionsFinan cialCounselor
Private Sub Label12_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Label12.Click
Dim F2 As New MS4AdmiFinCoun
F2.ShowDialog()
End Sub
Private Sub Label15_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Label15.Click
Dim F2 As New MisysRad
F2.ShowDialog()
End Sub
Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As
System.EventArg s) Handles Button1.Click
Dim message As New MailMessage("ea **@sutterhealth .org",
"ha*****@sutter health.org", "Account Request Form", "Account Request
Form")
Dim emailClient As New SmtpClient("dcs h1ex")
emailClient.Sen d(message)
MsgBox("Email Sent!")
End Sub
Private Sub AdmissionsFinan cialCounselor_L oad(ByVal sender As
System.Object, ByVal e As System.EventArg s) Handles MyBase.Load
End Sub
End Class
Someone please help if you know what I'm talking about?
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 beta testing and include Visual Basic 2005
Express, Visual C# 2005 Express, Visual C++ 2005 Express, Visual C++ 2005
Express, Visual J# 2005 Express, Visual Web Dev 2005 Express and SQL Server
2005 Express.
|
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:
http://download.microsoft.com/download/2/d/2/2d221839-eaf9-4d91-899e-95a9af12202e/vcssetup.exe
Visual C++ 2005 Express:
http://download.microsoft.com/download/3/f/3/3f3e65c3-9f57-40ee-a95b-57d49e560883/vcsetup.exe
Visual J# 2005 Express:
|
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?
2. Does VWD Express Edition support the idea of Solutions? I coun't figure
out how to create a blank solution which I usually do with VS2005 (and then
add my web site to the solution.)
|
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 later this week.
Here's the problem I'm experiencing -- I created several databound
controls on a form and when I attempt to debug the application I get 6
errors, 16 warnings --
Warning 1 The variable 'JeopardyDataSet' is either undeclared or...
|
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?
| |
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 code.
So If anyone has any idea about this...
|
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 in VB 6.
One database program that I wrote had a subform in one of the forms. I was
able to link the subform to the form simply by going into the properties
and setting the subform as a child form of the main parent form.
In VB 6, I can't...
|
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 window of a form can no more be
viewed within the user interface.
Does anyone have an idea on how I can do to access it ?
|
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 display
the Windows form. The form is being displayed but the command
only returns when the form is closed. I want the command line to
return immediately, leaving the form displayed.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |