Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

vb.net listbox

Empfohlene Antworten

Veröffentlicht

hallo leute,

ihr werdet mich zwar auslachen, aber wie krieg ich bei dem ... vb.net die mehrfachauswahl der listbox ausgelesen?

ich will einfach nur alle selektierten einträge als string.

        Do While i < listbox.Items.Count

            If listbox.GetSelected(i).ToString = "True" Then

                msgbox(listbox.? <-- hier weiß ich nicht weiter

            End If

            i = i + 1

        Loop

danke

jasso

Hallo jasso,

du kannst es einfach so ausgeben oder?

Gruß Ponaturi


       Do While i < listbox.Items.Count

            If listbox.GetSelected(i) Then

                MessageBox.Show(String.Format(listbox.Items(i)))

            End If

            i = i + 1

       Loop

  • Autor
Hallo jasso,

du kannst es einfach so ausgeben oder?

Gruß Ponaturi


       Do While i < listbox.Items.Count

            If listbox.GetSelected(i) Then

                MessageBox.Show(String.Format(listbox.Items(i)))

            End If

            i = i + 1

       Loop

nein lässt er mich nicht:

"Um auf ein Member zuzugreifen, das nicht als "Shared" deklariert ist, muss ein Objektverweis verwendet werden."

Ach wenn FOR NEXT verpöhnt ist

        Dim i, max As Integer

        max = CheckedListBox1.CheckedItems.Count


        For i = 0 To max - 1

            MsgBox(CheckedListBox1.CheckedItems(i))

        Next

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.