Imports System.Data.OleDb
Public Class Form1
Inherits System.Windows.Forms.Form
Public conn As New OleDbConnection
Public connectstring As String = String.Empty
Public comm As New OleDbCommand
Public dr As OleDbDataReader
Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click
Dim DataSource As String
Dim strUserName As String = String.Empty
Dim strPassword As String = String.Empty
strUserName = txtUserName.Text
strPassword = txtPassword.Text
connectstring = "Provider = Microsoft.Jet.OLEDB.4.0"
DataSource = "C:\Documents and Settings\Administrator\My Documents\double module\Online Sales and Inventory"
conn.Open()
comm.Connection = conn
VB.Net experts...hepl please!?
is Welcome a form?
If yes, you must instantiate the form
IE:
dim frmWelcome as New Welcom
frmWelcome.show
in vb6 you could call forms without instantiating, not in vb.net =)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment