Загрузка страницы

How to Create Login Form in VB NET With MS Access||VB.NET Tutorial

How to Create Login Form in VB.NET With MS Access
=================================================

Hai Gays Welcome to Techtime This Video How to Create Login Form in VB.NET With MS Access.
Basicaly Many Software Login Form in Conform but server login system used in Ms Access
database Using. Actualy i am using control one login form and BackEnd Software(MS-Access)

Thank's for Watching

Subscribe : https://www.youtube.com/channel/UCRkUaiK_dHgopgTCl4LXNAA?view_as=subscriber

For donation = G-pay upi id (dineshk1997kd@okicici)

Coding :
========

Imports System.Data.OleDb
PublicClass Form1

Dim cmdlog As OleDbCommand
Dim drlog As OleDbDataReader

PrivateSub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesMyBase.Load
Label3.Visible = False
Label3.Text = "login failed"
Label3.ForeColor = Color.DarkBlue
EndSub

PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim conn AsNew OleDbConnection("Provider= Microsoft.ACE.OLEDB.12.0;Data Source= C:\Users\Dinesh\Documents\Database1.accdb")
Dim cmdlog As OleDbCommand = New OleDbCommand("select * from login where [UserName]='"& TextBox1.Text &"'and [Password]='"& TextBox2.Text &"'", conn)
conn.Open()
Dim drlog As OleDbDataReader = cmdlog.ExecuteReader
If (drlog.Read() = True) Then
Me.Hide()
Form2.Show()
MsgBox("login successfully")
Else
MsgBox("login failed")
Label3.Visible = True
EndIf
EndSub

Видео How to Create Login Form in VB NET With MS Access||VB.NET Tutorial канала pendrive 2.0
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
29 августа 2018 г. 10:03:49
00:08:46
Яндекс.Метрика