hello stackoverflow world.
came up with a small project to help learn to code (vb.net) and solve a small problem.
i have a form that i want to select an "import" file which is a csv file. then for each value i want to populate text boxes.
so far i have design, i can open the file and count the number of rows. first not so important issue is ignore the first row which is just the title [pieces] so if any one has pointers for that then cool.
any way iv created a user control of 1 row of text boxes for the row of data in csv. testing i have added the user control to split container 2 and it populates those text boxes with all the data for first row. obviously there are more rows. so what i want is to at import count the lines and then add the user control x number of times going down the screen (with scroll bar) and then populate them. i think so far from what i have read is that the usercontrol name will increment for each time it exists so at the moment the one single line is Lineboxes1.txt1.Text = strFilelines(0)
and i suppose for the second line it would be Lineboxes2.txt1.Text = strFilelines(0)
i dont want code from any one but just some thing to read about adding and placing the next user control below the previous. im guessing i would need to delete the one iv added to main form and add only at import.
looking forward to your help guys.
ps just to kiss ass :), lot of respect to you guys who do this for a living, coding is hard but fun when it works.
Aucun commentaire:
Enregistrer un commentaire