Click here to Skip to main content
16,014,952 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Required Output Pin
nlarson1117-Jan-07 3:33
nlarson1117-Jan-07 3:33 
AnswerRe: Required Output Pin
Jason McBurney17-Jan-07 6:26
Jason McBurney17-Jan-07 6:26 
QuestionVBScript code to extract Window title Pin
B.L.Praveen17-Jan-07 1:19
B.L.Praveen17-Jan-07 1:19 
AnswerRe: VBScript code to extract Window title Pin
jstark11017-Jan-07 7:54
jstark11017-Jan-07 7:54 
GeneralRe: VBScript code to extract Window title Pin
B.L.Praveen17-Jan-07 20:40
B.L.Praveen17-Jan-07 20:40 
Questionwant mysql+vb.net application Pin
priya_p23316-Jan-07 23:59
priya_p23316-Jan-07 23:59 
AnswerRe: want mysql+vb.net application Pin
Christian Graus17-Jan-07 0:22
protectorChristian Graus17-Jan-07 0:22 
AnswerRe: want mysql+vb.net application Pin
Vinay Dornala17-Jan-07 0:59
Vinay Dornala17-Jan-07 0:59 
hi priya,

see this code I hope it will give some idea about mysql+ado.net using Vb.net

Dim connectionString As String = "Driver={MySQL};SERVER=localhost;DATABASE=NorthwindMySQL;"

Or you can use an ODBC DSN, as you can see from the following code that I've used TestDSN DSN to connect to the data source:

Dim conn As New OdbcConnection("DSN=TestDSN")

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim connectionString As String = "Driver={MySQL};SERVER=localhost;DATABASE=NorthwindMySQL;" '
Dim conn As New OdbcConnection(connectionString)
conn.Open()
Dim da As New OdbcDataAdapter("SELECT CustomerID, ContactName, ContactTitle FROM Customers", conn)
Dim ds As New DataSet("Cust")
da.Fill(ds, "Customers")
dataGrid1.DataSource = ds.DefaultViewManager
conn.Close()
End Sub


WINNING IS NOT OUR DREAM,IT'S A HABIT

HAVE A NICE EVENING

GeneralRe: want mysql+vb.net application [modified] Pin
priya_p23317-Jan-07 2:27
priya_p23317-Jan-07 2:27 
GeneralRe: want mysql+vb.net application Pin
Jason McBurney17-Jan-07 6:29
Jason McBurney17-Jan-07 6:29 
QuestionShow Table name Pin
Socheat.Net16-Jan-07 23:57
Socheat.Net16-Jan-07 23:57 
AnswerRe: Show Table name Pin
Jason McBurney17-Jan-07 6:39
Jason McBurney17-Jan-07 6:39 
Questionunknown software exception on closedown Pin
Ben Dessau16-Jan-07 23:03
Ben Dessau16-Jan-07 23:03 
Questionurgent!!!!!!!!!problem in VB.NET Pin
salon16-Jan-07 22:29
salon16-Jan-07 22:29 
QuestionSearching in datasets or datatables Pin
WofR16-Jan-07 22:11
WofR16-Jan-07 22:11 
AnswerRe: Searching in datasets or datatables Pin
shreekar16-Jan-07 23:20
shreekar16-Jan-07 23:20 
AnswerRe: Searching in datasets or datatables Pin
MatthysDT17-Jan-07 0:05
MatthysDT17-Jan-07 0:05 
AnswerRe: Searching in datasets or datatables Pin
Jason McBurney17-Jan-07 6:50
Jason McBurney17-Jan-07 6:50 
Questionpromblem Pin
ravimwani16-Jan-07 21:33
ravimwani16-Jan-07 21:33 
AnswerRe: promblem Pin
Christian Graus17-Jan-07 0:22
protectorChristian Graus17-Jan-07 0:22 
AnswerRe: promblem Pin
Jason McBurney17-Jan-07 6:52
Jason McBurney17-Jan-07 6:52 
Questionquery in vb.net [modified] Pin
amaneet16-Jan-07 21:24
amaneet16-Jan-07 21:24 
AnswerRe: query in vb.net Pin
Guffa16-Jan-07 22:01
Guffa16-Jan-07 22:01 
GeneralRe: query in vb.net [modified] Pin
amaneet16-Jan-07 22:25
amaneet16-Jan-07 22:25 
GeneralRe: query in vb.net Pin
nlarson1117-Jan-07 4:20
nlarson1117-Jan-07 4:20 

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.