Click here to Skip to main content
15,912,205 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Inject Dll with the Application Pin
Anubhava Dimri2-Nov-09 23:07
Anubhava Dimri2-Nov-09 23:07 
GeneralRe: Inject Dll with the Application Pin
DaveAuld2-Nov-09 23:12
professionalDaveAuld2-Nov-09 23:12 
GeneralRe: Inject Dll with the Application Pin
Anubhava Dimri2-Nov-09 23:57
Anubhava Dimri2-Nov-09 23:57 
GeneralRe: Inject Dll with the Application Pin
DaveAuld3-Nov-09 2:39
professionalDaveAuld3-Nov-09 2:39 
GeneralRe: Inject Dll with the Application Pin
The Man from U.N.C.L.E.2-Nov-09 23:39
The Man from U.N.C.L.E.2-Nov-09 23:39 
GeneralRe: Inject Dll with the Application Pin
Anubhava Dimri3-Nov-09 0:02
Anubhava Dimri3-Nov-09 0:02 
GeneralRe: Inject Dll with the Application Pin
Christian Graus3-Nov-09 8:53
protectorChristian Graus3-Nov-09 8:53 
QuestionListBox Reading File Help Pin
PAguilar092-Nov-09 21:58
PAguilar092-Nov-09 21:58 
So here is my problem I am reading in a file containing data and then displaying that data into a listbox once a user clicks a button but I dont know what I am doing wrong or if I am leaving something out? I want the display the data as so:

99 100 33 88 11 58 23 55
10 23 15 16 23 100 10 94
AND SO ON

right now the code i am using is display my datain the list box like this


99 11 10 23
100 58 23 100
33 23 15 10
88 55 16 94

My text file that i am reading in is Comma delimited and I added a blank space for the first character as such:
,99, 100, 22, 88, 11, 58, and so on and so on.........

here is my code:

'variables needed to create and output file
       Dim fileReader As StreamReader
       Dim input As FileStream
       Dim inputData As String
       Dim count As Integer

       input = New FileStream("cards.txt", FileMode.Open, FileAccess.Read)
       'get file containing cards

       fileReader = New StreamReader(input)
       Dim cards(0 To 52) As String
       inputData = fileReader.ReadLine()
       cards = inputData.Split(","c)


       For count = 0 To cards.Length - 1
           'add user entered values to list box
           lstCards.Items.Add(cards(count))
           lstCards.ColumnWidth = 30


       Next    'end for

AnswerRe: ListBox Reading File Help Pin
Christian Graus2-Nov-09 22:40
protectorChristian Graus2-Nov-09 22:40 
QuestionLeave a Datagrid row blank. Pin
jeshra2792-Nov-09 17:16
jeshra2792-Nov-09 17:16 
AnswerRe: Leave a Datagrid row blank. Pin
Christian Graus2-Nov-09 18:25
protectorChristian Graus2-Nov-09 18:25 
GeneralRe: Leave a Datagrid row blank. Pin
jeshra2792-Nov-09 23:43
jeshra2792-Nov-09 23:43 
QuestionSerial port receive data PROBLEM Pin
opium_210021002-Nov-09 9:24
opium_210021002-Nov-09 9:24 
AnswerRe: Serial port receive data PROBLEM Pin
Luc Pattyn2-Nov-09 9:42
sitebuilderLuc Pattyn2-Nov-09 9:42 
GeneralRe: Serial port receive data PROBLEM Pin
opium_210021002-Nov-09 9:46
opium_210021002-Nov-09 9:46 
GeneralRe: Serial port receive data PROBLEM Pin
Luc Pattyn2-Nov-09 9:51
sitebuilderLuc Pattyn2-Nov-09 9:51 
GeneralRe: Serial port receive data PROBLEM Pin
opium_210021002-Nov-09 9:56
opium_210021002-Nov-09 9:56 
GeneralRe: Serial port receive data PROBLEM Pin
Luc Pattyn2-Nov-09 10:03
sitebuilderLuc Pattyn2-Nov-09 10:03 
GeneralRe: Serial port receive data PROBLEM Pin
DaveAuld2-Nov-09 20:26
professionalDaveAuld2-Nov-09 20:26 
GeneralRe: Serial port receive data PROBLEM Pin
opium_210021002-Nov-09 23:10
opium_210021002-Nov-09 23:10 
QuestionPublishing a working program Pin
offroaderdan2-Nov-09 3:22
offroaderdan2-Nov-09 3:22 
AnswerRe: Publishing a working program Pin
EliottA2-Nov-09 3:23
EliottA2-Nov-09 3:23 
GeneralRe: Publishing a working program Pin
offroaderdan2-Nov-09 3:27
offroaderdan2-Nov-09 3:27 
GeneralRe: Publishing a working program Pin
EliottA2-Nov-09 3:29
EliottA2-Nov-09 3:29 
GeneralRe: Publishing a working program Pin
offroaderdan2-Nov-09 3:33
offroaderdan2-Nov-09 3:33 

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.