Click here to Skip to main content
16,005,162 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionOperation system users Pin
amaneet29-Mar-07 23:38
amaneet29-Mar-07 23:38 
AnswerRe: Operation system users Pin
Dave Kreskowiak30-Mar-07 4:03
mveDave Kreskowiak30-Mar-07 4:03 
Questiondsn in vb.net 2005 Pin
amaneet29-Mar-07 23:25
amaneet29-Mar-07 23:25 
AnswerRe: dsn in vb.net 2005 Pin
Dave Kreskowiak30-Mar-07 4:02
mveDave Kreskowiak30-Mar-07 4:02 
Questionopenfiledialog selected path in messagebox Pin
pm1447329-Mar-07 22:29
pm1447329-Mar-07 22:29 
AnswerRe: openfiledialog selected path in messagebox Pin
The ANZAC29-Mar-07 22:53
The ANZAC29-Mar-07 22:53 
GeneralEmailing and processes. Pin
Bradml29-Mar-07 22:17
Bradml29-Mar-07 22:17 
GeneralRe: Emailing and processes. Pin
The ANZAC29-Mar-07 23:02
The ANZAC29-Mar-07 23:02 
Process:
The System.diagnostics.process class provides a framework for interacting with processes. To kill a process, use the following.

System.Diagnostics.Process.Kill("explore.exe")

Email:
To use email functions you will want to deal with the system.net. To send an email is quite simple.

Dim m As New MailMessage(From, To, Subject, Body)<br />
                Dim a As New Attachment(a file to attach)<br />
                Dim c As New SmtpClient<br />
                m.Attachments.Add(a)<br />
                c.Host = name of the server (your internet provider)'eg mail@bigpond.com<br />
                Try<br />
                    c.Send(m)<br />
                    MessageBox.Show("Mail Sent Successfully!", "Success!", MessageBoxButtons.OK)<br />
                    Me.Close()<br />
                Catch ex As Exception<br />
                    MessageBox.Show("Mail could not be sent!", "Failed!", MessageBoxButtons.OK)<br />
                End Try


Posted by The ANZAC

GeneralRe: Emailing and processes. Pin
amaneet29-Mar-07 23:50
amaneet29-Mar-07 23:50 
GeneralRe: Emailing and processes. Pin
Dave Kreskowiak30-Mar-07 3:48
mveDave Kreskowiak30-Mar-07 3:48 
GeneralRe: Emailing and processes. Pin
Bradml30-Mar-07 0:20
Bradml30-Mar-07 0:20 
GeneralRe: Emailing and processes. Pin
Dave Kreskowiak30-Mar-07 3:58
mveDave Kreskowiak30-Mar-07 3:58 
QuestionBarcode scanning for a POS Pin
Meax29-Mar-07 22:03
Meax29-Mar-07 22:03 
AnswerRe: Barcode scanning for a POS Pin
Keith Malwitz30-Mar-07 2:19
Keith Malwitz30-Mar-07 2:19 
QuestionOUTLOOM EXPRESS IN VB.NET 2005 Pin
amaneet29-Mar-07 21:43
amaneet29-Mar-07 21:43 
AnswerRe: OUTLOOM EXPRESS IN VB.NET 2005 Pin
Dave Kreskowiak30-Mar-07 3:46
mveDave Kreskowiak30-Mar-07 3:46 
QuestionProject Problem. Pin
amaneet29-Mar-07 21:37
amaneet29-Mar-07 21:37 
AnswerRe: Project Problem. Pin
Colin Angus Mackay29-Mar-07 22:36
Colin Angus Mackay29-Mar-07 22:36 
GeneralRe: Project Problem. Pin
amaneet29-Mar-07 22:42
amaneet29-Mar-07 22:42 
QuestionIP address Pin
amaneet29-Mar-07 20:14
amaneet29-Mar-07 20:14 
AnswerRe: IP address Pin
Guffa29-Mar-07 20:19
Guffa29-Mar-07 20:19 
GeneralRe: IP address Pin
amaneet29-Mar-07 21:01
amaneet29-Mar-07 21:01 
GeneralRe: IP address Pin
Guffa29-Mar-07 22:10
Guffa29-Mar-07 22:10 
GeneralRe: IP address Pin
amaneet29-Mar-07 23:13
amaneet29-Mar-07 23:13 
Questionemail sending problem in vb.net 2005 Window Application Pin
amaneet29-Mar-07 20:12
amaneet29-Mar-07 20:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.