Click here to Skip to main content
15,921,841 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: keyboard response Pin
The Man from U.N.C.L.E.13-Aug-04 1:00
The Man from U.N.C.L.E.13-Aug-04 1:00 
GeneralHelp on Table Support in RichTextBox Control Pin
nasirc12-Aug-04 19:42
nasirc12-Aug-04 19:42 
GeneralRe: Help on Table Support in RichTextBox Control Pin
mav.northwind12-Aug-04 20:09
mav.northwind12-Aug-04 20:09 
GeneralMulti-Byte Languages (Japanese) Pin
sburton12-Aug-04 14:51
sburton12-Aug-04 14:51 
GeneralPictureBox & Multiple Forms Pin
Achithyn12-Aug-04 10:48
Achithyn12-Aug-04 10:48 
GeneralRe: PictureBox & Multiple Forms Pin
Achithyn13-Aug-04 15:16
Achithyn13-Aug-04 15:16 
GeneralFigured it out :p Pin
Achithyn13-Aug-04 16:58
Achithyn13-Aug-04 16:58 
GeneralPopulating a combo box using a DataView Pin
zaug12-Aug-04 9:37
zaug12-Aug-04 9:37 
I'm having trouble populating a combo box with all the rows for a certain field in an Access database. Right now I can use a Currency Manager to cycle through all the individual records on my form, I just can't get all the rows for a given column to come up in the combo box. Here is an example of my problem. The only thing on the form here is cboComboBox:

Imports System.Data.OleDb
Public Class Form1
Inherits System.Windows.Forms.Form

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim mcnConn As OleDbConnection
Dim mdsDSet As New DataSet
Dim mcmCurMang As CurrencyManager
Dim mvueDatVue As DataView
Dim mdaAdapter As OleDbDataAdapter

Dim strConnectionString As String
strConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=DUBookstore2000.mdb"

mcnConn = New OleDbConnection(strConnectionString)
Dim strSQLStatement As String
strSQLStatement = "SELECT Name FROM Publishers"

mdaAdapter = New OleDbDataAdapter(strSQLStatement, mcnConn)
mdaAdapter.Fill(mdsDSet, "Publishers")
mvueDatVue = New DataView(mdsDSet.Tables("Publishers"))

Me.cboComboBox.DataBindings().Add("Text", mvueDatVue, "Name")

mcmCurMang = CType(Me.BindingContext(mvueDatVue), CurrencyManager)

End Sub
End Class


Of course this isn't my whole form, like I said it just gives an illustration of the problem I'm having. Thanks in advance for the help!Smile | :)

-Steve
GeneralRe: Populating a combo box using a DataView Pin
progload12-Aug-04 12:14
progload12-Aug-04 12:14 
GeneralRe: Populating a combo box using a DataView Pin
zaug12-Aug-04 12:44
zaug12-Aug-04 12:44 
GeneralRe: Populating a combo box using a DataView Pin
progload12-Aug-04 13:05
progload12-Aug-04 13:05 
GeneralRe: Populating a combo box using a DataView Pin
zaug12-Aug-04 13:24
zaug12-Aug-04 13:24 
GeneralRe: Populating a combo box using a DataView Pin
progload12-Aug-04 13:30
progload12-Aug-04 13:30 
GeneralDataSet and DataGrid Pin
Member 129483012-Aug-04 8:45
Member 129483012-Aug-04 8:45 
Generalupdating Access Pin
monkeyjoe12-Aug-04 8:03
monkeyjoe12-Aug-04 8:03 
GeneralDataSet and DataGrid Pin
Member 129483012-Aug-04 7:53
Member 129483012-Aug-04 7:53 
GeneralRe: DataSet and DataGrid Pin
monkeyjoe12-Aug-04 8:16
monkeyjoe12-Aug-04 8:16 
GeneralRe: DataSet and DataGrid Pin
Member 129483012-Aug-04 8:52
Member 129483012-Aug-04 8:52 
GeneralRe: DataSet and DataGrid Pin
Anonymous13-Aug-04 9:50
Anonymous13-Aug-04 9:50 
QuestionWhat is the best 3rd Party Grid Control? Pin
mudbuddy1112-Aug-04 6:19
mudbuddy1112-Aug-04 6:19 
AnswerRe: What is the best 3rd Party Grid Control? Pin
cvp7712-Aug-04 21:55
cvp7712-Aug-04 21:55 
GeneralAccessing files while being copied Pin
Simon Kearn12-Aug-04 6:13
sussSimon Kearn12-Aug-04 6:13 
GeneralRe: Accessing files while being copied Pin
Dave Kreskowiak12-Aug-04 7:22
mveDave Kreskowiak12-Aug-04 7:22 
GeneralAI Project Pin
Anonymous12-Aug-04 5:54
Anonymous12-Aug-04 5:54 
GeneralRe: AI Project Pin
Dave Kreskowiak12-Aug-04 6:58
mveDave Kreskowiak12-Aug-04 6:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.