Patel_lab6 - Vrajesh Patel Ilab Week 6 Programming with C Prof Amoranbini DeVry University 16th April 2016 Part A Code:using using using using using

Patel_lab6 - Vrajesh Patel Ilab Week 6 Programming with C...

This preview shows page 1 - 4 out of 6 pages.

Vrajesh Patel Ilab: Week 6 Programming with C# Prof. Amoranbini DeVry University 16 th April, 2016
Image of page 1
Part A Code:- using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApplication2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click( object sender, EventArgs e) { if (textBox1.Text == string .Empty) { MessageBox.Show( "Can not be empty" ); } else { panel2.Visible = true ; } } private void button2_Click( object sender, EventArgs e) { if (textBox2.Text == string .Empty) { MessageBox.Show( "Required password" ); } if (textBox2.Text == textBox1.Text) { MessageBox.Show( "Password matches" ); } else { MessageBox.Show( "Password not matched" ); } } } } ScreenShot:-
Image of page 2
Part B Code:- using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms;
Image of page 3
Image of page 4

You've reached the end of your free preview.

Want to read all 6 pages?

  • Spring '11
  • newman
  • Randomness, Carriage return, Enter key, private void, Vrajesh Patel

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes