Click here to Skip to main content
15,910,234 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Translating and understanding what this code block does in c#, adn see if I translated it right for me to use. Pin
jkirkerx13-May-16 4:07
professionaljkirkerx13-May-16 4:07 
I knew it was a handler with the +=, but had no idea it was a sub call, Thanks!

I was thinking last night how to handle the smtpclient with using so it can release it resources.

I have a dialog that loops the collection of jobs in a listview, that generates a PDF attachment and then composes the message via await. In the composer function, it calls the SendMessage which is not await. I need to rethink that. It's OK to await again?

I didn't want to pollute my composition function with the Send Function and separated them.

Well, I'll add the handler and give it a spin, and then work on using the smtpclient.

Thanks Richard! and Upvote
for each job in jobs

   Await Compose

next

Function Compose()

   Build Message
   Attach PDF
   Build smtpClient
   Send
   Log send error

End Function

Function Send

   SendAsync

End Function

GeneralRe: Translating and understanding what this code block does in c#, adn see if I translated it right for me to use. Pin
Richard Deeming13-May-16 4:16
mveRichard Deeming13-May-16 4:16 
GeneralRe: Translating and understanding what this code block does in c#, adn see if I translated it right for me to use. Pin
jkirkerx13-May-16 5:02
professionaljkirkerx13-May-16 5:02 
QuestionData string manipulation in VB 2010 Pin
Gus11312-May-16 0:26
Gus11312-May-16 0:26 
AnswerRe: Data string manipulation in VB 2010 Pin
Richard MacCutchan12-May-16 0:38
mveRichard MacCutchan12-May-16 0:38 
AnswerRe: Data string manipulation in VB 2010 Pin
Robert g Blair12-May-16 12:27
Robert g Blair12-May-16 12:27 
GeneralRe: Data string manipulation in VB 2010 Pin
Gus11313-May-16 2:19
Gus11313-May-16 2:19 
GeneralRe: Data string manipulation in VB 2010 Pin
Gus11318-May-16 4:15
Gus11318-May-16 4:15 
GeneralRe: Data string manipulation in VB 2010 Pin
Robert g Blair18-May-16 10:47
Robert g Blair18-May-16 10:47 
GeneralRe: Data string manipulation in VB 2010 Pin
Gus11318-May-16 19:52
Gus11318-May-16 19:52 
GeneralRe: Data string manipulation in VB 2010 Pin
Robert g Blair19-May-16 11:30
Robert g Blair19-May-16 11:30 
GeneralRe: Data string manipulation in VB 2010 Pin
Gus11319-May-16 22:41
Gus11319-May-16 22:41 
GeneralRe: Data string manipulation in VB 2010 Pin
Gus11319-May-16 23:33
Gus11319-May-16 23:33 
GeneralRe: Data string manipulation in VB 2010 Pin
Robert g Blair22-May-16 12:12
Robert g Blair22-May-16 12:12 
QuestionAdd unsubscribe link to header of the mail sent from outlook Pin
srikrishnathanthri11-May-16 20:15
srikrishnathanthri11-May-16 20:15 
AnswerRe: Add unsubscribe link to header of the mail sent from outlook Pin
Richard Deeming12-May-16 2:02
mveRichard Deeming12-May-16 2:02 
GeneralRe: Add unsubscribe link to header of the mail sent from outlook Pin
srikrishnathanthri12-May-16 2:38
srikrishnathanthri12-May-16 2:38 
GeneralRe: Add unsubscribe link to header of the mail sent from outlook Pin
Richard Deeming12-May-16 3:12
mveRichard Deeming12-May-16 3:12 
GeneralRe: Add unsubscribe link to header of the mail sent from outlook Pin
srikrishnathanthri12-May-16 3:23
srikrishnathanthri12-May-16 3:23 
QuestionSaving data with data-bound Form Controls Pin
Raabi Anony11-May-16 16:31
Raabi Anony11-May-16 16:31 
AnswerRe: Saving data with data-bound Form Controls Pin
Dave Kreskowiak12-May-16 1:15
mveDave Kreskowiak12-May-16 1:15 
GeneralRe: Saving data with data-bound Form Controls Pin
Raabi Anony12-May-16 16:48
Raabi Anony12-May-16 16:48 
QuestionThe ADO.NET provider with invariant name 'System.Data.SqlLite.EF6' is either not registered in the machine or application config file, Pin
jkirkerx10-May-16 14:16
professionaljkirkerx10-May-16 14:16 
Answer[100% Solved], How to get SQLite to work with vb.net and EF6 using the NuGet Package System.Data.SQLite (x86/x64) Pin
jkirkerx11-May-16 9:54
professionaljkirkerx11-May-16 9:54 
QuestionHow we can get last 12 months using current month using sql Pin
MANISHA SONAWANE9-May-16 20:39
MANISHA SONAWANE9-May-16 20:39 

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.