Click here to Skip to main content
15,881,612 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCrystal report viewer 8.5 y visual basic 2005 Pin
Member 119485295-Feb-22 17:58
Member 119485295-Feb-22 17:58 
AnswerRe: Crystal report viewer 8.5 y visual basic 2005 Pin
CHill602-Mar-22 4:20
mveCHill602-Mar-22 4:20 
Questionremove item without being selected only with the name Pin
Benjamindh27-Jan-22 4:38
Benjamindh27-Jan-22 4:38 
AnswerRe: remove item without being selected only with the name Pin
Victor Nijegorodov27-Jan-22 5:30
Victor Nijegorodov27-Jan-22 5:30 
Questionhelp send data to new connected user Pin
Benjamindh26-Jan-22 5:46
Benjamindh26-Jan-22 5:46 
AnswerRe: help send data to new connected user Pin
Raphael Adeniji7-May-22 5:43
Raphael Adeniji7-May-22 5:43 
QuestionHelp add data received from a TCP in each Columns Pin
Benjamindh19-Jan-22 4:47
Benjamindh19-Jan-22 4:47 
AnswerRe: Help add data received from a TCP in each Columns Pin
Richard Deeming19-Jan-22 5:38
mveRichard Deeming19-Jan-22 5:38 
Because that's precisely what you've told it to do!

You need to split the string and add the elements to the columns:
VB.NET
Dim line As String = decode.GetString(DataBytes)
Dim parts() As String = line.Split("|"c)

Dim item As New ListViewItem()
item.Text = parts(0)
For i As Integer = 1 To parts.Length - 1
    item.Subitems.Add(parts(i))
Next

Me.LNetgames.Items.Add(item)

NB: According to your screenshot, your text starts with the | character. You may need to adjust the indices on the array to skip the blank first element:
VB.NET
item.Text = parts(1)
For i As Integer = 2 To parts.Length - 1
    ...




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

GeneralRe: Help add data received from a TCP in each Columns Pin
Benjamindh19-Jan-22 14:23
Benjamindh19-Jan-22 14:23 
QuestionOpen, read and extract pdf's doc. Pin
Member 1490245413-Jan-22 4:16
Member 1490245413-Jan-22 4:16 
AnswerRe: Open, read and extract pdf's doc. Pin
Dave Kreskowiak13-Jan-22 5:19
mveDave Kreskowiak13-Jan-22 5:19 
GeneralRe: Open, read and extract pdf's doc. Pin
Member 1490245413-Jan-22 7:55
Member 1490245413-Jan-22 7:55 
GeneralRe: Open, read and extract pdf's doc. Pin
Dave Kreskowiak13-Jan-22 8:33
mveDave Kreskowiak13-Jan-22 8:33 
GeneralRe: Open, read and extract pdf's doc. Pin
Member 1490245414-Jan-22 0:25
Member 1490245414-Jan-22 0:25 
AnswerRe: Open, read and extract pdf's doc. Pin
CHill6014-Jan-22 1:27
mveCHill6014-Jan-22 1:27 
QuestionHow do I get the propertyname of WPF control? Pin
Steve Krozer7-Jan-22 0:30
Steve Krozer7-Jan-22 0:30 
Rant[REPOST] How do I get the propertyname of WPF control? Pin
Richard Deeming7-Jan-22 0:38
mveRichard Deeming7-Jan-22 0:38 
QuestionExtracting username from a access database to show username after logging on Pin
Jeremy Haley 20226-Jan-22 4:14
Jeremy Haley 20226-Jan-22 4:14 
AnswerRe: Extracting username from a access database to show username after logging on Pin
Richard MacCutchan6-Jan-22 5:47
mveRichard MacCutchan6-Jan-22 5:47 
GeneralRe: Extracting username from a access database to show username after logging on Pin
Jeremy Haley 20226-Jan-22 5:55
Jeremy Haley 20226-Jan-22 5:55 
GeneralRe: Extracting username from a access database to show username after logging on Pin
Richard MacCutchan6-Jan-22 6:53
mveRichard MacCutchan6-Jan-22 6:53 
SuggestionRe: Extracting username from a access database to show username after logging on Pin
Richard Deeming6-Jan-22 5:57
mveRichard Deeming6-Jan-22 5:57 
Questioncombine two datatable Pin
Member 143292662-Jan-22 17:44
Member 143292662-Jan-22 17:44 
AnswerRe: combine two datatable Pin
Richard Deeming3-Jan-22 23:54
mveRichard Deeming3-Jan-22 23:54 
GeneralRe: combine two datatable Pin
Member 143292665-Jan-22 15:16
Member 143292665-Jan-22 15:16 

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.