r/visualbasic • • 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

16 comments sorted by

View all comments

Show parent comments

1

u/realgonca Apr 27 '21

I’ll do it when I have it on the computer thanks

1

u/RJPisscat Apr 27 '21

I just watched the video. I have answered a question for you earlier about how to update a line when a quantity is added.

In the video I see you add an item, then move the scrollbar manually. You want it to move automatically. The code I gave you does that.

Listview1.AddItem(LI)
Listview1.EnsureVisible(ListView1.Items.Count-1)

----

Acabei de ver o video. Eu respondi uma pergunta para você anteriormente sobre como atualizar uma linha quando uma quantidade é atualizada.

No vídeo, vejo que você adiciona um item e move a barra de rolagem manualmente. Você quer que ele se mova automaticamente. O código que eu dei a você faz isso.

Voce esta em portugal ou no brasil? Falo espanhol mas consigo ler português.

1

u/realgonca Apr 27 '21

-

I can’t believe it really worked, thank you so much for your help in my problems

1

u/realgonca Apr 27 '21

Sou português, ainda bem porque assim posso te pedir ajuda.
Muito obrigado mesmo estás sempre aqui a ajudar

1

u/RJPisscat Apr 27 '21

De nada 😊