Hello Friends ,
Thanks for Coming my Blog , Dear Friend in this Article I am Explaining you How to Create Signup Form Design and Coding Below Video How I was Created this , You Must Watch Full Video. after that if you have any question please comment me i will answer your every Question. i give you full code and Projects you can learn Faster.
For more Videos like that Subscribe my channel in Youtube https://www.youtube.com/aminsati
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;
namespace SignupLoginChange
{
public partial class Form1 : Form
{
string path = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=E:\sati.com\For Youtube\SignupLoginChange\bin\Debug\dbloginpassword.accdb;Persist Security Info=True";
OleDbConnection con;
OleDbCommand cmd = new OleDbCommand();
public Form1()
{
InitializeComponent();
}
private void insert()
{
string query = "insert into tbllogin (fusername,fpassword,fconfirmpassword) values('"+txtusername.Text +"','"+txtrpassword.Text +"','"+txtconfirmpassword.Text +"')";
con = new OleDbConnection(path);
con.Open();
cmd.Connection = con;
cmd.CommandText = query;
cmd.ExecuteNonQuery();
con.Close();
MessageBox.Show("Save Data Successfully");
txtusername.Text = "";
txtrpassword.Text = "";
txtconfirmpassword.Text = "";
txtusername.Focus();
}
private void btnsignup_Click(object sender, EventArgs e)
{
insert();
}
private void button1_Click(object sender, EventArgs e)
{
this.Close();
}
private void btnclose_Click(object sender, EventArgs e)
{
this.Close();
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
0 Comments