But after some research, I noticed it wasn't so easy as I thought it was. I've got it working using a DataGridViewer, but I want it have it in a combobox.
My code so far(with DataGridViewer)
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click SQL = "SELECT Navn FROM havasit;" Try myCommand.Connection = myConnection myCommand.CommandText = SQL myAdapter.SelectCommand = myCommand myAdapter.Fill(myData) DataGridView1.DataSource = myData DataGridView1.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells Catch myerror As MySqlException MsgBox("Error: " & myerror.Message) End Try End Sub
I read that the only way to do this would be with a adapter.
But i cant find any research that I can understand, which can help me, to convert this combobox items.
Any help at all whould be very appreciated.
This post has been edited by Hypermx: 16 September 2010 - 07:16 AM