Click here to Skip to main content
15,559,637 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionConvert C to VB Pin
leofoe15-Feb-21 23:52
leofoe15-Feb-21 23:52 
AnswerRe: Convert C to VB Pin
Richard Deeming16-Feb-21 0:38
mveRichard Deeming16-Feb-21 0:38 
GeneralRe: Convert C to VB Pin
leofoe16-Feb-21 0:46
leofoe16-Feb-21 0:46 
GeneralRe: Convert C to VB Pin
Richard Deeming16-Feb-21 2:19
mveRichard Deeming16-Feb-21 2:19 
QuestionDeleting a sent file Pin
Member 1152288212-Feb-21 12:11
Member 1152288212-Feb-21 12:11 
AnswerRe: Deleting a sent file Pin
Ralf Meier12-Feb-21 13:26
mveRalf Meier12-Feb-21 13:26 
AnswerRe: Deleting a sent file Pin
Dave Kreskowiak12-Feb-21 16:51
mveDave Kreskowiak12-Feb-21 16:51 
AnswerRe: Deleting a sent file Pin
Richard Deeming14-Feb-21 22:51
mveRichard Deeming14-Feb-21 22:51 
As Dave said, you need to dispose of the message after you've sent it:
VB.NET
Using message As New MailMessage()
    message.From = New MailAddress("@gmail.com")
    message.To.Add("@gmail.com")
    message.Attachments.Add(New System.Net.Mail.Attachment(compInfo))
    Dim smtp As New SmtpClient("smtp.gmail.com")
    smtp.Port = 587
    smtp.Credentials = New System.Net.NetworkCredential("@gmail.com", "pass")
    smtp.EnableSsl = True
    smtp.Send(message)
End Using

If IO.File.Exists(compInfo) Then
    IO.File.Delete(compInfo)
End If




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

Questionwkhtmltopdf.exe - Process-Start over COM-Interop - Access denied Pin
VoidFunctionMain10-Feb-21 5:48
VoidFunctionMain10-Feb-21 5:48 
QuestionCode for Saving work Pin
Wamono erick5-Feb-21 8:52
Wamono erick5-Feb-21 8:52 
AnswerRe: Code for Saving work Pin
Dave Kreskowiak5-Feb-21 9:28
mveDave Kreskowiak5-Feb-21 9:28 
QuestionProblem when setting the ReadOnly state of a property: CLOSED Pin
mo149231-Jan-21 6:56
mo149231-Jan-21 6:56 
QuestionInterfacing with Zlib.dll Pin
albert_redditt28-Jan-21 11:16
albert_redditt28-Jan-21 11:16 
AnswerRe: Interfacing with Zlib.dll Pin
20212a28-Jan-21 11:30
20212a28-Jan-21 11:30 
AnswerRe: Interfacing with Zlib.dll Pin
Richard MacCutchan28-Jan-21 22:14
mveRichard MacCutchan28-Jan-21 22:14 
QuestionUnable to complete the code for Web scrapping Pin
The Mentee27-Jan-21 9:56
The Mentee27-Jan-21 9:56 
AnswerRe: Unable to complete the code for Web scrapping Pin
Richard Deeming27-Jan-21 22:49
mveRichard Deeming27-Jan-21 22:49 
GeneralRe: Unable to complete the code for Web scrapping Pin
The Mentee28-Jan-21 1:06
The Mentee28-Jan-21 1:06 
GeneralRe: Unable to complete the code for Web scrapping Pin
DerekT-P28-Jan-21 8:07
professionalDerekT-P28-Jan-21 8:07 
GeneralPersonal Appointment Reminder Code Pin
mike Pant10-Jan-21 3:58
mike Pant10-Jan-21 3:58 
GeneralRe: Personal Appointment Reminder Code Pin
Victor Nijegorodov10-Jan-21 4:59
Victor Nijegorodov10-Jan-21 4:59 
GeneralRe: Personal Appointment Reminder Code Pin
Gerry Schmitz10-Jan-21 5:47
mveGerry Schmitz10-Jan-21 5:47 
QuestionExcel VBA Macro Pin
tutymano5-Jan-21 18:49
tutymano5-Jan-21 18:49 
AnswerRe: Excel VBA Macro Pin
Dave Kreskowiak5-Jan-21 20:55
mveDave Kreskowiak5-Jan-21 20:55 
AnswerRe: Excel VBA Macro Pin
Mycroft Holmes6-Jan-21 12:02
professionalMycroft Holmes6-Jan-21 12:02 

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.