Click here to Skip to main content
15,909,091 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: A looping Question Pin
Guffa11-Feb-07 23:51
Guffa11-Feb-07 23:51 
GeneralRe: A looping Question Pin
WestSideRailways12-Feb-07 7:43
WestSideRailways12-Feb-07 7:43 
AnswerRe: A looping Question Pin
Guffa13-Feb-07 11:42
Guffa13-Feb-07 11:42 
AnswerRe: A looping Question Pin
TwoFaced11-Feb-07 21:00
TwoFaced11-Feb-07 21:00 
GeneralRe: A looping Question Pin
WestSideRailways11-Feb-07 22:14
WestSideRailways11-Feb-07 22:14 
GeneralRe: A looping Question Pin
TwoFaced11-Feb-07 22:29
TwoFaced11-Feb-07 22:29 
GeneralRe: A looping Question Pin
WestSideRailways11-Feb-07 22:35
WestSideRailways11-Feb-07 22:35 
GeneralRe: A looping Question [modified] Pin
WestSideRailways11-Feb-07 23:40
WestSideRailways11-Feb-07 23:40 
This is my Code so far.....

Do While Not FileReader.EndOfStream
      StringReader = FileReader.ReadLine
      Form2.ListView1.Items.Add(StringReader)
      'Adding Subitems
      Dim item As ListViewItem = Form2.ListView1.Items.Add(StringReader)
      Dim i As Integer
      For i = 0 To 5
          item.SubItems.Add(StringReader)
      Next
  Loop


Just a little bit of fine tuning....Smile | :)
What is happening is that the first item on the left is in the right spot, after that what should be the first sum-item it duplicated in the left column.
Then in the 3rd row this same item is in all the sub-item columns.
And the same thing happens to all the other sum-items, which then knoks out of wack all the other data.

It is surprising how writing something out and then thinking about it , you can come up with an answer;)D'Oh! | :doh:
AND THE ANSWER is :-

move the Stringreader line into the for next loop and get rid of the line :-
Form2.ListView1.Items.Add(StringReader) as you don't need it twice in the code.






-- modified at 5:52 Monday 12th February, 2007
QuestionCan PDA support USB devices?? Pin
crazyteh11-Feb-07 17:09
crazyteh11-Feb-07 17:09 
AnswerRe: Can PDA support USB devices?? Pin
Dave Kreskowiak12-Feb-07 4:47
mveDave Kreskowiak12-Feb-07 4:47 
QuestionHide Form & hiding form Pin
Macky10011-Feb-07 11:10
Macky10011-Feb-07 11:10 
AnswerRe: Hide Form & hiding form Pin
Christian Graus11-Feb-07 11:15
protectorChristian Graus11-Feb-07 11:15 
AnswerRe: Hide Form & hiding form Pin
DA_Loring11-Feb-07 12:46
DA_Loring11-Feb-07 12:46 
AnswerRe: Hide Form & hiding form Pin
FeRtoll11-Feb-07 20:49
FeRtoll11-Feb-07 20:49 
QuestionHide Form 7 Pin
Macky10011-Feb-07 11:08
Macky10011-Feb-07 11:08 
GeneralRe: Hide Form 7 Pin
Hari Om Prakash Sharma11-Feb-07 21:29
Hari Om Prakash Sharma11-Feb-07 21:29 
GeneralRe: Hide Form 7 Pin
FeRtoll11-Feb-07 21:48
FeRtoll11-Feb-07 21:48 
QuestionHow to highlight a gridline Pin
andy3811-Feb-07 11:04
andy3811-Feb-07 11:04 
AnswerRe: How to highlight a gridline Pin
Dave Kreskowiak11-Feb-07 13:54
mveDave Kreskowiak11-Feb-07 13:54 
GeneralRe: How to highlight a gridline Pin
andy3811-Feb-07 13:57
andy3811-Feb-07 13:57 
QuestionPort Control vb.net Pin
al96811-Feb-07 9:41
al96811-Feb-07 9:41 
AnswerRe: Port Control vb.net Pin
Dave Kreskowiak11-Feb-07 13:42
mveDave Kreskowiak11-Feb-07 13:42 
GeneralRe: Port Control vb.net Pin
al96811-Feb-07 16:20
al96811-Feb-07 16:20 
GeneralRe: Port Control vb.net Pin
Dave Kreskowiak11-Feb-07 16:36
mveDave Kreskowiak11-Feb-07 16:36 
GeneralRe: Port Control vb.net Pin
al96812-Feb-07 0:59
al96812-Feb-07 0:59 

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.