|
-
Jan 5th, 2009, 01:52 AM
#1
Thread Starter
Lively Member
[RESOLVED] Listbox add problum
Greetings All
I forgot VS 2008
I can add a textbox text to the listbox and save it to IO.File.AppendText(Application.StartupPath & "\List.txt")
but i cant get it to add with a openfiledialog , now the listbox allready hase text loaded in it , iam trying to add too it with openfiledialog
openFileDialog1.Filter = "Text files (*.txt)|*.txt|All files (*.*)|*.*"
openFileDialog1.Title = "Select a Cursor File"
openFileDialog1.FileName = ""
ProgressBar1.Visible = True
If openFileDialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK Then
Dim lines() As String = File.ReadAllLines(openFileDialog1.FileName)
For Each line As String In lines
Lst.Items.Add(line)
Next
can someone help me on this
Thankl You
Dem
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|