Click here to Skip to main content
15,914,111 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Scrolling a text box Pin
DaveAuld25-May-10 9:34
professionalDaveAuld25-May-10 9:34 
GeneralRe: Scrolling a text box Pin
William Winner25-May-10 9:43
William Winner25-May-10 9:43 
GeneralRe: Scrolling a text box Pin
Dr.Walt Fair, PE25-May-10 9:36
professionalDr.Walt Fair, PE25-May-10 9:36 
GeneralRe: Scrolling a text box Pin
Luc Pattyn25-May-10 9:42
sitebuilderLuc Pattyn25-May-10 9:42 
AnswerRe: Scrolling a text box Pin
William Winner25-May-10 9:29
William Winner25-May-10 9:29 
Question[VB.NET] TextBox's Multiple text into ListView items and subitems Pin
Dimz9325-May-10 4:38
Dimz9325-May-10 4:38 
AnswerRe: [VB.NET] TextBox's Multiple text into ListView items and subitems Pin
DaveAuld25-May-10 5:23
professionalDaveAuld25-May-10 5:23 
AnswerRe: [VB.NET] TextBox's Multiple text into ListView items and subitems Pin
William Winner25-May-10 6:33
William Winner25-May-10 6:33 
I am assuming that you are using a multi-line TextBox. If that's the case, then you could first split the TextBox1.Text value using the vbNewLine as the character to split on.

This will give you an array with an item for each line.

VB
Dim nameLines() As String = TextBox1.Text.Split(New Char() {vbNewLine})
Dim emailLines() As String = TextBox2.Text.Split(New Char() {vbNewLine})

If nameLines.Count <> emailLines.Count Then
   MessageBox.Show("Number of entries don't match")
   Return
End If

For i = 0 to UBound(nameLines)
   Dim newItem As New ListViewItem(New String() {nameLines(i), emailLines(i)})
   ListView1.Items.Add(newItem)
Next

GeneralRe: [VB.NET] TextBox's Multiple text into ListView items and subitems Pin
Luc Pattyn25-May-10 7:06
sitebuilderLuc Pattyn25-May-10 7:06 
QuestionHelp with Save File problem Pin
normschaef25-May-10 4:31
normschaef25-May-10 4:31 
AnswerRe: Help with Save File problem Pin
DaveAuld25-May-10 5:27
professionalDaveAuld25-May-10 5:27 
AnswerRe: Help with Save File problem Pin
normschaef25-May-10 5:49
normschaef25-May-10 5:49 
GeneralRe: Help with Save File problem Pin
Luc Pattyn25-May-10 6:21
sitebuilderLuc Pattyn25-May-10 6:21 
GeneralRe: Help with Save File problem Pin
normschaef25-May-10 6:53
normschaef25-May-10 6:53 
Questionchange a form target Pin
mabrahao24-May-10 16:03
mabrahao24-May-10 16:03 
AnswerRe: change a form target Pin
mabrahao24-May-10 16:06
mabrahao24-May-10 16:06 
Questionhow can i pass a value from a datagrid into a textbox? Pin
waner michaud24-May-10 5:11
waner michaud24-May-10 5:11 
AnswerRe: how can i pass a value from a datagrid into a textbox? Pin
Dr.Walt Fair, PE24-May-10 6:18
professionalDr.Walt Fair, PE24-May-10 6:18 
GeneralRe: how can i pass a value from a datagrid into a textbox? Pin
waner michaud24-May-10 7:09
waner michaud24-May-10 7:09 
GeneralRe: how can i pass a value from a datagrid into a textbox? Pin
Dr.Walt Fair, PE24-May-10 7:37
professionalDr.Walt Fair, PE24-May-10 7:37 
GeneralRe: how can i pass a value from a datagrid into a textbox? Pin
waner michaud24-May-10 7:43
waner michaud24-May-10 7:43 
GeneralRe: how can i pass a value from a datagrid into a textbox? Pin
Dr.Walt Fair, PE24-May-10 7:52
professionalDr.Walt Fair, PE24-May-10 7:52 
GeneralRe: how can i pass a value from a datagrid into a textbox? Pin
waner michaud24-May-10 8:13
waner michaud24-May-10 8:13 
GeneralRe: how can i pass a value from a datagrid into a textbox? Pin
Dr.Walt Fair, PE24-May-10 8:45
professionalDr.Walt Fair, PE24-May-10 8:45 
GeneralRe: how can i pass a value from a datagrid into a textbox? Pin
waner michaud24-May-10 8:56
waner michaud24-May-10 8:56 

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.