Hi guys , i want to fill a textbox with a data from my mysql database and i dont know how to do it , i already searched without a result , if someone can help me i would appreciate it .
xVent
0
Junior Poster in Training
Recommended Answers
Jump to PostxVent,
... Open DB connection ... Execute Query and assign result into var variable. txtData.Text=var; ... ...
Jump to PostPost your code work.
Jump to PostImports System Imports System.Data Imports MySql.Data.MySqlClient Public Class Form2 Dim con As New MySqlConnection() Dim cmd As New MySqlCommand Dim adptr As New MySqlDataAdapter Dim table As New DataTable Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click con.ConnectionString = "Database=" & Form1.TextBox1.Text & …
All 9 Replies
xVent
0
Junior Poster in Training
kvprajapati
1,826
Posting Genius
Team Colleague
xVent
0
Junior Poster in Training
xVent
0
Junior Poster in Training
kvprajapati
1,826
Posting Genius
Team Colleague
xVent
0
Junior Poster in Training
Piya27
4
Junior Poster
kvprajapati
1,826
Posting Genius
Team Colleague
xVent
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.