• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

Populate Listbox

Hi,

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.

Thanks
0
shersu
Asked:
shersu
  • 2
  • 2
1 Solution
 
vilimedCommented:
http://msdn2.microsoft.com/en-us/vstudio/aa718334.aspx
in section Data Access Samples
VB Version
0
 
shersuAuthor Commented:
Thanks! It worked. I would like to know how to retrieve a clicked item in the listbox.

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

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now