Sunday 12 July 2015

Coding and Designing Login Form Without Database in VB.NET

Coding and Designing Login Form




















Steps:

  • Add a new Form to your project.
  • Add a Label for Header and change the Text properties  to Login
  • Add two Labels - change the Text properties and set it to username and password.
  • Add two Textboxes - change the design name and set it txtUser and txtPass.
  • Add three Buttons - Change the Text properties and set it  to login.reset and Exit.  Also change the design name to btnLogin, btnReset,btnExit respectively.

Coding:


Public Class frmLogin
    Dim count As Double = 0

    Private Sub btnExit_Click(sender As System.Object, e As System.EventArgs) Handles btnExit.Click
        Me.Close()

    End Sub

    Private Sub btnReset_Click(sender As System.Object, e As System.EventArgs) Handles btnReset.Click
        txtPass.Clear()
        txtUser.Clear()
        txtUser.Focus()

    End Sub

    Private Sub btnLogin_Click(sender As System.Object, e As System.EventArgs) Handles btnLogin.Click
        Dim user, pass As String
        user = "root"
        pass = "password"

        If txtUser.Text = user And txtPass.Text = pass Then

            MessageBox.Show("welcome user")
        Else
            'count = count + 1
            count += 1
            Dim maxcount, remain_count As Double
            maxcount = 3
            remain_count = maxcount - count

            MessageBox.Show("wrong username or password" & "" & remain_count & "tries left")
            txtPass.Clear()
            txtUser.Clear()
            txtUser.Focus()

            If count = maxcount Then
                MessageBox.Show("Max try exceeded")
                Application.Exit()

            End If



        End If


    End Sub

    Private Sub frmLogin_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        Me.AcceptButton = btnLogin

    End Sub
End Class


Correct username and password









































Wrong username and password 














































Watch Video Tutorial here

   

Coding and Designing Login Form Without Database in C#

Coding and Designing Login Form




















Steps:

  • Add a new Form to your project.
  • Add a Label for Header and change the Text properties  to Login
  • Add two Labels - change the Text properties and set it to username and password.
  • Add two Textboxes - change the design name and set it txtUser and txtPass.
  • Add three Buttons - Change the Text properties and set it  to login.reset and Exit.  Also change the design name to btnLogin, btnReset,btnExit respectively.

Coding:


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;

namespace AttendanceMan
{
    public partial class frmLogin : Form
    {
        Double count = 0;
        public frmLogin()
        {
            InitializeComponent();
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void frmLogin_Load(object sender, EventArgs e)
        {
            this.AcceptButton = btnLogin;

        }

        private void btnExit_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnReset_Click(object sender, EventArgs e)
        {
            //txtPass.Text = "";
            
            //txtPass.Text = string.Empty;
            txtPass.Clear();
            txtUser.Clear();
            txtUser.Focus();


        }

        private void btnLogin_Click(object sender, EventArgs e)
        {
            string user, pass;
            user = "root";
            pass = "password";

            if ((txtUser.Text == user) && (txtPass.Text == pass))
            {
                MessageBox.Show("Welcome User");
            }
            else
            {

                count = count + 1;
                double maxcount = 3;
                double remain;
                remain = maxcount - count;
                MessageBox.Show("Wrong user name or password" +"\t" +remain +"" +"tries left");
                txtPass.Clear();
                txtUser.Clear();
                txtUser.Focus();
                if (count == maxcount)
                {
                    MessageBox.Show("Max try exceeded.");
                    Application.Exit();
                }

            }
               

        }
    }
}


Correct username and password









































Wrong username and password 














































Watch Video Tutorial here


Friday 10 July 2015

Designing and Coding Splash Screen in VB.NET

Splash Screen Coding and Design









Steps:

  • Start your Visual Studio IDE.
  • Click on File and Create a new Project
  • Select Visual C# as Language.
  • Select Windows Form Application
  • Give project name
  • Browse and Select project folder.
  • Click on OK
  • Add Label and change the Text Property to  desired name
  • Add a progress bar control
  • Add a timer
  • Add another label and change the Text property to "Loading ..."

Coding:

Public Class frmSplash
    Private Sub frmSplash_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        timerSplash.Enabled = True
    End Sub
    Private Sub timerSplash_Tick(sender As System.Object, e As System.EventArgs) Handles timerSplash.Tick
        pBar.Increment(+1)
        If pBar.Value = 100 Then
            timerSplash.Stop()
            frmLogin.Show()
            Me.Hide()
        End If
    End Sub
End Class


Watch Video Tutorial here :


Designing and coding Splash Screen In C#

Splash Screen Coding and Design







Steps:

  • Start your Visual Studio IDE.
  • Click on File and Create a new Project
  • Select Visual C# as Language.
  • Select Windows Form Application
  • Give project name
  • Browse and Select project folder.
  • Click on OK
  • Add Label and change the Text Property to  desired name
  • Add a progress bar control
  • Add a timer
  • Add another label and change the Text property to "Loading ..."

Coding:

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;
namespace AttendanceMan
{
    public partial class frmSplash : Form
    {
        public frmSplash()
        {
            InitializeComponent();
        }
        private void timerSplash_Tick(object sender, EventArgs e)
        {
            pBar.Increment(1);
            if (pBar.Value == 100)
            {
                timerSplash.Stop();
                frmLogin login = new frmLogin();
                login.Show();
                    this.Hide();
            }
        }
        private void frmSplash_Load(object sender, EventArgs e)
        {
            timerSplash.Enabled = true;
        }
    }
}

Watch Video Tutorial here



Attendance Management System (VB.NET and C#)

Project Requirements



ü Software :

MS Visual Studio 2010 and above
SQL Server 2008 and above. Other DB like ORACLE and MYSQL .
SAP Crystal Report.
Adobe Photoshop – for design of graphical objects
Windows 7,8 ,8.1 ,10  OS.

ü Hardware :

Physical Machine – computer
 Machine configuration – 32bit or 64 bit processor Architecture.
2gb RAM –minimum
250gb HDD – minimum.
1.5ghz clock speed

ü  Language :

C#
VB.NET

The most important Requirement is dedication and continuous perseverance.

Watch Intro here: