The text of this article is not in this database — only its details are. Read it on the old site: Displaying Data in a ListBox Web Control
2 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Displaying Data in a ListBox Web Control
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
khavy xxxxxxxxPosted Dec 20, 2010, 5:46 AM
Imports System.Data.OleDb Public Class Form1 Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click ' Put user code to initialize the page here ' Create an object of OleDbDataAdapter Dim da As OleDbDataAdapter = New OleDbDataAdapter("Select * from Employees", "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Administrator\Music\Northwind.mdb") ' Create a DataSet Object Dim ds As DataSet = New DataSet ' Fill DataSet with the data da.Fill(ds, "Employees") ' Set DataSource property of ListBox as DataSet's DefaultView ListBox1.DataSource = ds.Tables("Employees").DefaultView ListBox1.SelectedIndex = 0 ' Set Field Name you want to get data from ListBox1.DisplayMember = "FirstName" End Sub
AUDREYPosted Dec 10, 2009, 10:02 PM
I need to know how to display a multiplication equations in a listbox going from teh numbers 1 to 15 and being capable of multiplying the number from 1 to 12. For example hte results will show all the tables for 5 like 5*1=1 and so on in the listbox