Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Can get listbox to load data from database

Author  Topic 

new2this
Starting Member

16 Posts

Posted - 2008-05-23 : 15:34:52
I have a sql server database linked to my application. I have a table that I want one of the columns (Service Perfomed) to load in a list box. When I start the application nothing appears in the list box. What could I be doing wrong?

Here the code the visual studio created:

Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles MyBase.Load

Me.ServiceTableAdapter.Fill(Me.MaintenanceRecordsDataSet.Service)
End Sub

I've tried combo box, text box and these seem to work fine but not the list box.

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-05-26 : 04:59:18
Post your query at ASP.NET forums

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -