Click here to Skip to main content
15,892,927 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionFocus problem with Interop usercontrol Pin
Glauter27-Jan-09 1:47
Glauter27-Jan-09 1:47 
AnswerRe: Focus problem with Interop usercontrol Pin
Dave Kreskowiak27-Jan-09 1:59
mveDave Kreskowiak27-Jan-09 1:59 
GeneralRe: Focus problem with Interop usercontrol Pin
Glauter27-Jan-09 2:12
Glauter27-Jan-09 2:12 
GeneralRe: Focus problem with Interop usercontrol Pin
Dave Kreskowiak27-Jan-09 4:16
mveDave Kreskowiak27-Jan-09 4:16 
GeneralRe: Focus problem with Interop usercontrol Pin
Glauter27-Jan-09 4:21
Glauter27-Jan-09 4:21 
QuestionExporting data and sending email with attachments in Windows Form exe Pin
Ramki Sankaran27-Jan-09 1:34
Ramki Sankaran27-Jan-09 1:34 
AnswerRe: Exporting data and sending email with attachments in Windows Form exe [modified] Pin
Wendelius27-Jan-09 2:54
mentorWendelius27-Jan-09 2:54 
AnswerRe: Exporting data and sending email with attachments in Windows Form exe Pin
Bharat Jain27-Jan-09 19:36
Bharat Jain27-Jan-09 19:36 
You can use the following code send you excel file as an attachment from your application.
it use an smtp server,please enter proper email id as marked in the comments , i have tested it from a gmail account

Dim smtpClient As New Net.Mail.SmtpClient()
        Dim mail As New Net.Mail.MailMessage()
        'create the message to be sent 
        mail.To.Add("test@test.com") ' Enter the Email of the person you want to send the mail to
        mail.From = New Net.Mail.MailAddress("username@gmail.com", "Your Display Name") ' Enter Your email address
        mail.Subject = "Test Message"
        mail.Body = "This is a test message"
        ' Prepare the client to send the above message
        'Attach the file as attachment 
        mail.Attachments.Add(new System.Net.Mail.Attachment("yourFileName.xls"))
        smtpClient.Host = "smtp.gmail.com"
        smtpClient.EnableSsl = True
        smtpClient.Port = 587
        smtpClient.Credentials = New Net.NetworkCredential("username@gmail.com", "password") 'Enter username and password of the account , you want to use to send mail
        smtpClient.DeliveryMethod = Net.Mail.SmtpDeliveryMethod.Network
        smtpClient.Send(mail)


Hope this helps

-Regards
Bharat Jain
bharat.jain.nagpur@gmail.com

GeneralRe: Exporting data and sending email with attachments in Windows Form exe Pin
Ramki Sankaran28-Jan-09 23:25
Ramki Sankaran28-Jan-09 23:25 
QuestionPassing Parameter From VB 6 to Crystal Report 8.5 Pin
BalasubramanianK27-Jan-09 0:58
BalasubramanianK27-Jan-09 0:58 
AnswerRe: Passing Parameter From VB 6 to Crystal Report 8.5 Pin
Vimalsoft(Pty) Ltd27-Jan-09 1:20
professionalVimalsoft(Pty) Ltd27-Jan-09 1:20 
GeneralRe: Passing Parameter From VB 6 to Crystal Report 8.5 Pin
BalasubramanianK27-Jan-09 1:27
BalasubramanianK27-Jan-09 1:27 
AnswerRe: Passing Parameter From VB 6 to Crystal Report 8.5 Pin
Tom Deketelaere27-Jan-09 2:06
professionalTom Deketelaere27-Jan-09 2:06 
GeneralRe: Passing Parameter From VB 6 to Crystal Report 8.5 Pin
BalasubramanianK27-Jan-09 2:16
BalasubramanianK27-Jan-09 2:16 
Questiondatabase file missing while publishing my vb.net project Pin
NaliniNagarajan27-Jan-09 0:46
NaliniNagarajan27-Jan-09 0:46 
AnswerRe: database file missing while publishing my vb.net project Pin
Vimalsoft(Pty) Ltd27-Jan-09 1:14
professionalVimalsoft(Pty) Ltd27-Jan-09 1:14 
QuestionFiltering dataset Pin
carrigart27-Jan-09 0:01
carrigart27-Jan-09 0:01 
AnswerRe: Filtering dataset Pin
N a v a n e e t h27-Jan-09 0:14
N a v a n e e t h27-Jan-09 0:14 
GeneralRe: Filtering dataset Pin
carrigart27-Jan-09 18:37
carrigart27-Jan-09 18:37 
AnswerRe: Filtering dataset Pin
Vimalsoft(Pty) Ltd27-Jan-09 1:39
professionalVimalsoft(Pty) Ltd27-Jan-09 1:39 
QuestionTimesheet project in VB.NET Pin
vijay248226-Jan-09 22:44
vijay248226-Jan-09 22:44 
AnswerRe: Timesheet project in VB.NET Pin
Eddy Vluggen26-Jan-09 23:55
professionalEddy Vluggen26-Jan-09 23:55 
GeneralRe: Timesheet project in VB.NET Pin
vijay248227-Jan-09 1:26
vijay248227-Jan-09 1:26 
GeneralTimesheet project in VB.NET Abstract Pin
vijay248228-Jan-09 1:20
vijay248228-Jan-09 1:20 
AnswerRe: Timesheet project in VB.NET Abstract Pin
Eddy Vluggen28-Jan-09 2:53
professionalEddy Vluggen28-Jan-09 2:53 

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.