C# PROGRAMMING
(Case Study)
CASE PROBLEM:
Design and develop a simple program that demonstrates how to preload a collection of items into List box 1. The program should be able to display one or more selected items on another list box. Follow the given figure below in designing and developing the application program.
Case Problem Description
A list of low-level and high-level programming languages is in the first listbox.The problem is to preload or transfer the selected items onthe second list box, which will be choosen by the customer of the said establishment. Sorting is not necessary.
Form Lay-out Design
Complete 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 WindowsFormsApplication1
{
public partial class Form1 : Form { public Form1() { InitializeComponent(); }
private void Form1_Load(object sender, EventArgs e) {
}
private void button1_Click(object sender, EventArgs e) { Form2 frm2 = new Form2(); {
if ((textBox1.Text == "ARLYN") && (textBox2.Text == "DELEON")) frm2.Show();
else MessageBox.Show("Incorrect USERNAME or PASSWORD"); this.Show(); } textBox1.Text = ""; textBox2.Text = "";
}
private void label2_Click(object sender, EventArgs e) {
}
private void label1_Click(object sender, EventArgs e) {
} }
}
using System; using System.Collections.Generic; using System.ComponentModel;
using