|
-
Mar 26th, 2007, 04:29 PM
#1
Thread Starter
Lively Member
Load data into 2-dimensional array
Public Sub OpenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click
Dim streamline As System.IO.StreamReader
Dim Txt As String = ""
OpenFileDialog1.FileName = "Select File"
If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.Cancel Then
Return
End If
OpenFileName = OpenFileDialog1.FileName
streamline = New System.IO.StreamReader(OpenFileName)
Do Until streamline.EndOfStream
Txt = Txt & streamline.ReadLine & vbCrLf
Loop
streamline.Close()
TextBox1.Text = Txt
End Sub
So this code loads a bunch of numbers into a textbox......how do i load them into an array (two dimensional)
545435345 65
345345345 45
basically my goal is two have to input boxes, and when the user types in the left number, the second box displays the corresponding number...
any ideas?
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
|