Populate Listbox

Posted on 2007-07-30
Last Modified: 2010-03-19

I am a newbie to VB.NET. I would like to display data from a SQL database table to a listbox. How do I accomplish this? Please help.

Question by:shersu
    LVL 3

    Expert Comment

    LVL 3

    Accepted Solution

    in section Data Access Samples
    VB Version

    Author Comment

    Thanks! It worked. I would like to know how to retrieve a clicked item in the listbox.


    Author Comment

    Is it possible to populate one column of a DataGridView control from a database table when the form is loaded?

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    If you find yourself in this situation “I have used SELECT DISTINCT but I’m getting duplicates” then I'm sorry to say you are using the wrong SQL technique as it only does one thing which is: produces whole rows that are unique. If the results you a…
    In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now