Click here to Skip to main content
15,921,028 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralSort column 1 and after column 2 Pin
helelark1236-Jan-08 4:04
helelark1236-Jan-08 4:04 
AnswerRe: Sort column 1 and after column 2 Pin
Guffa6-Jan-08 5:12
Guffa6-Jan-08 5:12 
GeneralRe: Sort column 1 and after column 2 Pin
helelark1238-Jan-08 20:53
helelark1238-Jan-08 20:53 
AnswerRe: Sort column 1 and after column 2 Pin
Guffa9-Jan-08 3:49
Guffa9-Jan-08 3:49 
GeneralRe: Sort column 1 and after column 2 Pin
helelark1239-Jan-08 4:04
helelark1239-Jan-08 4:04 
GeneralRe: Sort column 1 and after column 2 Pin
Guffa9-Jan-08 16:04
Guffa9-Jan-08 16:04 
AnswerRe: Sort column 1 and after column 2 Pin
helelark12312-Jan-08 2:57
helelark12312-Jan-08 2:57 
GeneralReading text file Pin
Ahamed Azeem5-Jan-08 21:54
Ahamed Azeem5-Jan-08 21:54 
Dear Gents,

I have a text file call Imp.text containing the following contents in the same order

x1, x2, x3, x4
y1, y2, y3, y4
z1, z2, z3, z4

and I have 4 text boxes in a windows form.

My objective is I need to bind x1 into first text box, x2 into second text box, x3 into third text box etc.

When i press button named as next, it should display second row in the corresponding text boxes.. y1--> 1st textbox, y2---> 2nd text box etc..

I have written following coding but its always displaying the the last row only.

Dim i As Integer
Dim fields() As String
Dim filename As String = "C:\Inv\Imp.txt"
Dim delimiter As String = ","
Using parser As New FileIO.TextFieldParser(filename)
parser.SetDelimiters(delimiter)
While Not parser.EndOfData
For i = 0 To parser.EndOfData
fields = parser.ReadFields()
itemcode.Text = fields(0)
secondcode.Text = fields(1)
itemname.Text = fields(2)
category.Text = fields(3)
Next
End While
End Using

Pls correct me If I am wrong

Regards
Azeem
GeneralRe: Reading text file Pin
Christian Graus5-Jan-08 22:53
protectorChristian Graus5-Jan-08 22:53 
GeneralRetrieve Parts from Item in Arraylist Pin
Dayekh5-Jan-08 19:34
Dayekh5-Jan-08 19:34 
AnswerRe: Retrieve Parts from Item in Arraylist Pin
Reza Raad5-Jan-08 19:56
Reza Raad5-Jan-08 19:56 
GeneralRe: Retrieve Parts from Item in Arraylist Pin
Dayekh6-Jan-08 12:05
Dayekh6-Jan-08 12:05 
GeneralProgram Files Nightmare Pin
Dreamer20075-Jan-08 1:43
Dreamer20075-Jan-08 1:43 
GeneralRe: Program Files Nightmare Pin
nlarson115-Jan-08 3:45
nlarson115-Jan-08 3:45 
GeneralRe: Program Files Nightmare Pin
Dave Kreskowiak5-Jan-08 15:14
mveDave Kreskowiak5-Jan-08 15:14 
GeneralRe: Program Files Nightmare Pin
Dreamer20076-Jan-08 19:32
Dreamer20076-Jan-08 19:32 
GeneralRe: Program Files Nightmare Pin
Dave Kreskowiak7-Jan-08 3:01
mveDave Kreskowiak7-Jan-08 3:01 
QuestionWhen do and where do i decide i need to adopt threading if at all ??? Pin
vbbeg4-Jan-08 20:37
vbbeg4-Jan-08 20:37 
AnswerRe: When do and where do i decide i need to adopt threading if at all ??? Pin
Guffa5-Jan-08 7:32
Guffa5-Jan-08 7:32 
AnswerRe: When do and where do i decide i need to adopt threading if at all ??? Pin
Luc Pattyn5-Jan-08 11:08
sitebuilderLuc Pattyn5-Jan-08 11:08 
GeneralRe: When do and where do i decide i need to adopt threading if at all ??? Pin
vbbeg5-Jan-08 22:47
vbbeg5-Jan-08 22:47 
GeneralRe: When do and where do i decide i need to adopt threading if at all ??? Pin
Luc Pattyn6-Jan-08 2:59
sitebuilderLuc Pattyn6-Jan-08 2:59 
QuestionHow to suppress a column in datagrid? (vb.net 1.1) Pin
infotools4-Jan-08 20:23
infotools4-Jan-08 20:23 
GeneralRe: How to suppress a column in datagrid? (vb.net 1.1) Pin
ejaz_pk4-Jan-08 21:48
ejaz_pk4-Jan-08 21:48 
GeneralRe: How to suppress a column in datagrid? (vb.net 1.1) Pin
infotools6-Jan-08 3:00
infotools6-Jan-08 3:00 

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.