r/visualbasic • u/realgonca • Apr 26 '21
Visual Basic || Final Project Year
Good afternoon everyone, I’m in my last year of schooling and I have to develop a year-end project (PAP), in my PAP, I have a problem in my listview when I add some items, automatically appears the scrollbar when I run out of field of view, but does not automatically walk down when placing a new item.
5
Upvotes
1
u/Rikdol Apr 27 '21 edited Apr 27 '21
i tried the following to create a list. after adding a new item use the second call: .topindex = .newindex
Dim i&i& = 0Do While i& <= 15Form2.List1.AddItem "Item" & i&Form2.List1.TopIndex = Form2.List1.NewIndexi& = i& + 1LoopI just realised this is for .net Visual Basic and not VB6 :) , maybe it will still be helpful for you...