Click here to Skip to main content
15,889,820 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How can I list a directory into a listBox and view its content OnClick inside the listBox? Pin
Dave Kreskowiak2-Oct-09 8:43
mveDave Kreskowiak2-Oct-09 8:43 
GeneralRe: How can I list a directory into a listBox and view its content OnClick inside the listBox? Pin
EliottA2-Oct-09 8:53
EliottA2-Oct-09 8:53 
GeneralRe: How can I list a directory into a listBox and view its content OnClick inside the listBox? Pin
Luc Pattyn2-Oct-09 8:54
sitebuilderLuc Pattyn2-Oct-09 8:54 
Questionvalue pass into textbox to javascript in asp.net Pin
paya1pa2-Oct-09 2:01
paya1pa2-Oct-09 2:01 
AnswerRe: value pass into textbox to javascript in asp.net Pin
Tom Deketelaere2-Oct-09 2:18
professionalTom Deketelaere2-Oct-09 2:18 
GeneralRe: value pass into textbox to javascript in asp.net Pin
Richard MacCutchan2-Oct-09 3:08
mveRichard MacCutchan2-Oct-09 3:08 
GeneralRe: value pass into textbox to javascript in asp.net Pin
Tom Deketelaere2-Oct-09 3:13
professionalTom Deketelaere2-Oct-09 3:13 
QuestionNeed help in reading a text file and storing in array Pin
Surej702-Oct-09 1:55
Surej702-Oct-09 1:55 
Hi,
I need help with this following code. It's to read word stored in two text files and storing in a arry for someprocessing later. this code works fine when the text files are below 10kb .it gives error in line marked bold when it's around 19kb..can some one help me to sort it please..? the error is "Key cannot be null. Parameter name: key" on that red marked line

Imports System.IO
Imports System.Text
Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Button1.Enabled = False

Dim ga As Integer = 0, ba As Integer = 0
Dim gaen As Integer = 0, baen As Integer = 0
' totalbad As Integer = 0
' reading good words dictionary file
Dim goodReader As StreamReader = File.OpenText("good.txt")
' reading bad words dictionary file
Dim badReader As StreamReader = File.OpenText("bad.txt")
' creating array with the good words
Dim gl As New ArrayList()
Dim hshgood As New Hashtable()
While Not goodReader.EndOfStream
gl.Add(goodReader.ReadLine())
If goodReader.ReadLine() IsNot Nothing Then
hshgood.Add(goodReader.ReadLine(), goodReader.ReadLine())
End If
End While
' creating array with the bad words
Dim bl As New ArrayList()
Dim hshbad As New Hashtable()
While Not badReader.EndOfStream
bl.Add(badReader.ReadLine())
If badReader.ReadLine() IsNot Nothing Then
hshbad.Add(badReader.ReadLine(), badReader.ReadLine())
End If
End While


Thanks

Surej

AnswerRe: Need help in reading a text file and storing in array Pin
Luc Pattyn2-Oct-09 2:11
sitebuilderLuc Pattyn2-Oct-09 2:11 
GeneralRe: Need help in reading a text file and storing in array Pin
Surej702-Oct-09 3:30
Surej702-Oct-09 3:30 
QuestionError Description [-214767259] Pin
mdrizwan_12-Oct-09 0:52
mdrizwan_12-Oct-09 0:52 
AnswerRe: Error Description [-214767259] Pin
Vimalsoft(Pty) Ltd2-Oct-09 4:03
professionalVimalsoft(Pty) Ltd2-Oct-09 4:03 
AnswerRe: Error Description [-214767259] Pin
Dave Kreskowiak2-Oct-09 4:09
mveDave Kreskowiak2-Oct-09 4:09 
QuestionProblem in IF statement Pin
vijay24821-Oct-09 23:04
vijay24821-Oct-09 23:04 
AnswerRe: Problem in IF statement Pin
Christian Graus1-Oct-09 23:07
protectorChristian Graus1-Oct-09 23:07 
GeneralMessage Closed Pin
1-Oct-09 23:32
vijay24821-Oct-09 23:32 
GeneralRe: Problem in IF statement Pin
Christian Graus2-Oct-09 0:43
protectorChristian Graus2-Oct-09 0:43 
AnswerRe: Problem in IF statement Pin
Luc Pattyn2-Oct-09 2:20
sitebuilderLuc Pattyn2-Oct-09 2:20 
QuestionDataGridView Checkbox - Check Event Pin
jeshra2791-Oct-09 19:44
jeshra2791-Oct-09 19:44 
AnswerRe: DataGridView Checkbox - Check Event Pin
Tom Deketelaere1-Oct-09 22:48
professionalTom Deketelaere1-Oct-09 22:48 
AnswerRe: DataGridView Checkbox - Check Event Pin
decuria7-Dec-10 8:32
decuria7-Dec-10 8:32 
QuestionFTP in vb.net Pin
JollyMansArt1-Oct-09 17:21
JollyMansArt1-Oct-09 17:21 
AnswerRe: FTP in vb.net Pin
Tom Deketelaere1-Oct-09 21:54
professionalTom Deketelaere1-Oct-09 21:54 
AnswerRe: FTP in vb.net Pin
Dave Kreskowiak2-Oct-09 4:00
mveDave Kreskowiak2-Oct-09 4:00 
QuestionDelegates confusion Pin
Sonhospa1-Oct-09 3:11
Sonhospa1-Oct-09 3:11 

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.