Post: I need some help :p
05-26-2013, 04:59 PM #1
KLArcher
Little One
(adsbygoogle = window.adsbygoogle || []).push({}); You must login or register to view this content.



i want it to be in the already setup collums Smile
You must login or register to view this content.


    Imports MySql.Data.MySqlClient

Public Class Form2

Private Sub Form2_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Form1.Close()

End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim connectionstring As String
Dim commandtext As String
Dim adapter As MySqlDataAdapter
Dim table As DataTable

commandtext = "SELECT * FROM login"

connectionstring = "server=localhost;user id = root;password=;database=login;"
Try
adapter = New MySqlDataAdapter(commandtext, connectionstring)
table = New DataTable
adapter.Fill(table)
DataGridView1.DataSource = table

Catch ex As Exception

End Try
End Sub
End Class


---------- Post added at 04:59 PM ---------- Previous post was at 04:51 PM ----------

Whoops! Just noticed put in wrong section on accident!
(adsbygoogle = window.adsbygoogle || []).push({});
05-26-2013, 05:06 PM #2
Gandalf
Gandalf the Orange
Thread moved

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo