Click here to Skip to main content
15,886,689 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Richard Deeming3-Apr-14 1:14
mveRichard Deeming3-Apr-14 1:14 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Dan O'Riordan3-Apr-14 1:23
Dan O'Riordan3-Apr-14 1:23 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Richard MacCutchan3-Apr-14 1:12
mveRichard MacCutchan3-Apr-14 1:12 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Dave Kreskowiak3-Apr-14 2:24
mveDave Kreskowiak3-Apr-14 2:24 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Dan O'Riordan3-Apr-14 2:43
Dan O'Riordan3-Apr-14 2:43 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Dave Kreskowiak3-Apr-14 3:43
mveDave Kreskowiak3-Apr-14 3:43 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Richard MacCutchan3-Apr-14 4:00
mveRichard MacCutchan3-Apr-14 4:00 
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Dan O'Riordan3-Apr-14 2:52
Dan O'Riordan3-Apr-14 2:52 
Hi again guys,

I am now using the following For Each in my code. I think this is what you are on about regarding looping. Please set me right if I am off path here.
However, if it is right, I am still only getting one address into the mail.to field.

VB
' Determine the mailMessage.To property based on CheckBox checked status

If CheckBox1.Checked = True Then

    For Each dr As DataRow In myDataTable.Rows

        mailMessage.To.Add(New MailAddress(dr.Item(0).ToString))

    Next

Else

    mailMessage.To.Add(New MailAddress(EmailTextBox.Text.Trim()))

End If


Thanks in advance.
GeneralRe: Add Multiple Records to one TextBox from SQL Pin
Richard MacCutchan3-Apr-14 3:11
mveRichard MacCutchan3-Apr-14 3:11 
AnswerRe: Add Multiple Records to one TextBox from SQL Pin
Tino Fourie24-Apr-14 4:13
Tino Fourie24-Apr-14 4:13 
QuestionMinimize 3 forms pressing the minimize button on main form Pin
dilkonika2-Apr-14 1:42
dilkonika2-Apr-14 1:42 
AnswerRe: Minimize 3 forms pressing the minimize button on main form Pin
Richard MacCutchan2-Apr-14 2:31
mveRichard MacCutchan2-Apr-14 2:31 
GeneralRe: Minimize 3 forms pressing the minimize button on main form Pin
dilkonika2-Apr-14 3:37
dilkonika2-Apr-14 3:37 
GeneralRe: Minimize 3 forms pressing the minimize button on main form Pin
Dave Kreskowiak2-Apr-14 3:54
mveDave Kreskowiak2-Apr-14 3:54 
GeneralRe: Minimize 3 forms pressing the minimize button on main form Pin
dilkonika2-Apr-14 3:58
dilkonika2-Apr-14 3:58 
AnswerRe: Minimize 3 forms pressing the minimize button on main form Pin
Dave Kreskowiak2-Apr-14 4:12
mveDave Kreskowiak2-Apr-14 4:12 
GeneralRe: Minimize 3 forms pressing the minimize button on main form Pin
dilkonika2-Apr-14 6:07
dilkonika2-Apr-14 6:07 
SuggestionRe: Minimize 3 forms pressing the minimize button on main form Pin
Eddy Vluggen2-Apr-14 7:06
professionalEddy Vluggen2-Apr-14 7:06 
GeneralRe: Minimize 3 forms pressing the minimize button on main form Pin
dilkonika2-Apr-14 11:54
dilkonika2-Apr-14 11:54 
GeneralRe: Minimize 3 forms pressing the minimize button on main form Pin
Eddy Vluggen3-Apr-14 3:02
professionalEddy Vluggen3-Apr-14 3:02 
GeneralRe: Minimize 3 forms pressing the minimize button on main form Pin
Dave Kreskowiak2-Apr-14 7:42
mveDave Kreskowiak2-Apr-14 7:42 
GeneralRe: Minimize 3 forms pressing the minimize button on main form Pin
dilkonika2-Apr-14 12:00
dilkonika2-Apr-14 12:00 
GeneralRe: Minimize 3 forms pressing the minimize button on main form Pin
Dave Kreskowiak2-Apr-14 13:04
mveDave Kreskowiak2-Apr-14 13:04 
GeneralRe: Minimize 3 forms pressing the minimize button on main form Pin
dilkonika2-Apr-14 13:30
dilkonika2-Apr-14 13:30 
GeneralRe: Minimize 3 forms pressing the minimize button on main form Pin
Dave Kreskowiak2-Apr-14 14:05
mveDave Kreskowiak2-Apr-14 14:05 

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.