i made a very basic vb.net application with SQLite database to learn the concept of deployment. this is the code to display the data of a table of SQLite databse.
Imports System.Data.SQLite Imports System.Data.SqlClient Public Class Form1 Dim con As New SQLiteConnection
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
displaydata()
End Sub
Public Function displaydata()
con.ConnectionString = "Data Source=walnutdatabse.s3db"
con.Open()
Dim query As String = "select * from walnut_contacts"
Dim da As New SQLiteDataAdapter((query), con)
Dim table As New DataTable
table.Locale = System.Globalization.CultureInfo.InvariantCulture
da.Fill(table)
BindingSource1.DataSource = table
DataGridView1.DataSource = BindingSource1
con.Close()
Return Nothing
End Function
this application is running well but when i publish it or deploy it , it doesn't run . anybody having any hint ?
Aucun commentaire:
Enregistrer un commentaire