os dejo el codigo aki para ver si me podeis ayudar.
Código:
Imports MySQLDriverCS ------------------------------------------ Dim bConexionExitosa As Boolean = True Dim DBCon As MySQLConnection DBCon = New MySQLConnection(New MySQLConnectionString("xxxxxxxxx", "xxxxxxxx", "xxxxx", "xxxxxxx", 3306).AsString) Try DBCon.Open() Catch ex As MySQLException bConexionExitosa = False End Try If bConexionExitosa Then Dim f() As String = {"id", "Menu_posterior", "Menu_inferior"} Dim t() As String = {"Menu"} Dim dt As DataTable = New MySQLSelectCommand(DBCon, f, t, Nothing, Nothing, Nothing).Table If (dt.Rows.Count <> 0) Then Dim drow As DataRow For Each drow In dt.Rows If drow("id") = "1" Then Me.RichTextBox1.Text = drow("Menu_posterior") Me.RichTextBox2.Text = drow("Menu_inferior") Exit For End If Next End If DBCon.Close() End If End Sub
Alguien tiene una ida como hacer que me devuelva el contenido en string?
uso una dll para conectar MySQLDriverCS
Gracias.