Click here to Skip to main content
16,008,750 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: hi Pin
ershad15-Aug-08 23:54
ershad15-Aug-08 23:54 
GeneralRe: hi Pin
Christian Graus16-Aug-08 0:07
protectorChristian Graus16-Aug-08 0:07 
GeneralRe: hi Pin
Paul Conrad16-Aug-08 9:22
professionalPaul Conrad16-Aug-08 9:22 
AnswerRe: hi Pin
~Khatri Mitesh~16-Aug-08 0:02
~Khatri Mitesh~16-Aug-08 0:02 
GeneralRe: hi Pin
Christian Graus16-Aug-08 0:08
protectorChristian Graus16-Aug-08 0:08 
GeneralRe: hi Pin
Paul Conrad16-Aug-08 9:23
professionalPaul Conrad16-Aug-08 9:23 
AnswerRe: hi Pin
rprateek18-Aug-08 18:53
rprateek18-Aug-08 18:53 
Questionhow to import .csv or .txt file into listview control?? Pin
aungthiha15-Aug-08 21:08
aungthiha15-Aug-08 21:08 
hi.. could you pls help me solve this problem..i am just finding the way "how to import .csv or .txt file into listview control??" i have a code which is akin to it but it reads everything inside the file add to the listview only one line.. so how about line by line adding??... below is my code..

Private Function ReadTextFile(ByVal sFileName As String) As String
Dim s As String
Try
Dim oFile As FileStream = New FileStream(sFileName, FileMode.Open, FileAccess.Read, FileShare.Read)
Dim oReader As StreamReader = New StreamReader(oFile)

s = oReader.ReadToEnd()

oReader.Close()
oFile.Close()
ReadTextFile = s


Catch

ReadTextFile = "Unable to open file."

End Try

End Function

Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim s As String

s = ReadTextFile(Environment.CurrentDirectory & "\ReadMe.txt")
ListView1.Items.Add(s)
'MessageBox.Show(s)
End Sub
AnswerRe: how to import .csv or .txt file into listview control?? Pin
Christian Graus15-Aug-08 21:34
protectorChristian Graus15-Aug-08 21:34 
GeneralRe: how to import .csv or .txt file into listview control?? Pin
Mycroft Holmes16-Aug-08 15:08
professionalMycroft Holmes16-Aug-08 15:08 
GeneralRe: how to import .csv or .txt file into listview control?? Pin
LloydA11117-Aug-08 15:32
LloydA11117-Aug-08 15:32 
QuestionGraphing calculator problem (VB.NET) Pin
jacobjordan15-Aug-08 17:44
jacobjordan15-Aug-08 17:44 
AnswerRe: Graphing calculator problem (VB.NET) Pin
The Cadde18-Aug-08 0:32
The Cadde18-Aug-08 0:32 
GeneralRe: Graphing calculator problem (VB.NET) Pin
jacobjordan18-Aug-08 10:37
jacobjordan18-Aug-08 10:37 
QuestionThread count keeps increasing Pin
alexvw15-Aug-08 16:31
alexvw15-Aug-08 16:31 
AnswerRe: Thread count keeps increasing Pin
N a v a n e e t h15-Aug-08 18:12
N a v a n e e t h15-Aug-08 18:12 
GeneralHere is the code! [modified] Pin
alexvw16-Aug-08 1:11
alexvw16-Aug-08 1:11 
Question[Message Deleted] Pin
Matthew Leggett15-Aug-08 16:10
Matthew Leggett15-Aug-08 16:10 
AnswerRe: is it possible Pin
Christian Graus15-Aug-08 18:07
protectorChristian Graus15-Aug-08 18:07 
QuestionHelp Pin
Matthew Leggett15-Aug-08 15:46
Matthew Leggett15-Aug-08 15:46 
AnswerRe: Help Pin
Christian Graus15-Aug-08 18:09
protectorChristian Graus15-Aug-08 18:09 
AnswerRe: Help Pin
ChandraRam17-Aug-08 21:01
ChandraRam17-Aug-08 21:01 
QuestionDateTime and Time Zones Pin
nlarson1115-Aug-08 9:38
nlarson1115-Aug-08 9:38 
AnswerRe: DateTime and Time Zones Pin
Mycroft Holmes15-Aug-08 15:26
professionalMycroft Holmes15-Aug-08 15:26 
QuestionVB Code problem Pin
romance115-Aug-08 9:10
romance115-Aug-08 9:10 

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.