VB Listview Basics

Поделиться
HTML-код
  • Опубликовано: 22 янв 2025
  • A simple introduction to using the Vb Listview control to output a list of information using columns and rows.
    Code used is here:
    Global variable:
    Dim CurrentItem As Integer = 0
    Button sub-routine code:
    If radBread.Checked Then
    lsvOrderDetails.Items.Add("Bread")
    ElseIf radBaguette.Checked Then
    lsvOrderDetails.Items.Add("Baguette")
    Else
    lsvOrderDetails.Items.Add("Roll")
    End If
    If radCheese.Checked Then
    lsvOrderDetails.Items(CurrentItem).SubItems.Add("Cheese")
    ElseIf radChicken.Checked Then
    lsvOrderDetails.Items(CurrentItem).SubItems.Add("Chicken")
    Else
    lsvOrderDetails.Items(CurrentItem).SubItems.Add("Salad")
    End If
    lsvOrderDetails.Items(CurrentItem).SubItems.Add(txtQuantity.Text)
    'Increment row number for next row
    CurrentItem += 1

Комментарии • 10

  • @jn1mrgn
    @jn1mrgn Год назад +2

    THANK YOU for doing a tutorial where you don't spend the first 15 minutes dragging, resizing, naming, etc controls. Obviously if I'm watching this video, I know how to do that already.

  • @jtlunsford780
    @jtlunsford780 Год назад

    Awesome the way you laid it out. Fairly new to VB but, enough experience to change and add a couple things. Love it, I see you have another ListView so I'll be checking that out and more of your vids. Yes, subscribing, Easy to follow, easy to read the code and thanks for good annunciation. Thanks so much...JT

  • @ax4232
    @ax4232 5 лет назад +1

    Thanks for this. I searched the web for an hour and found nothing as helpful as this.

  • @cbo2914
    @cbo2914 2 года назад +1

    Enjoy the information, well explained. Be easier to follow if the screens/locations weren’t changed back and forth so rapidly, though.

  • @helpmenowmark
    @helpmenowmark 6 лет назад +1

    Well done. Thank you for taking the time.

  • @AxmPlays
    @AxmPlays Год назад +1

    Thank you!

  • @robertfagot3218
    @robertfagot3218 7 лет назад +1

    lovely vid

  • @clubpenguindaily311
    @clubpenguindaily311 7 лет назад +3

    more top quality tutorials or riot!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Sound quality is fantastic, I bet your Mic cost over 1 billion ugandan shilling

  • @clubpenguindaily311
    @clubpenguindaily311 7 лет назад +1

    intro is top notch! those road lines are sexy. please produce good content like this regularly! ly sugarplum x

  • @doragonsoruja
    @doragonsoruja 4 года назад +1

    Thanks, it helps but I'm still very lost