Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 button1_Click(object sender, EventArgs e)
- {
- listBox1.Items.Add("Luni");
- listBox1.Items.Add("Marti");
- listBox1.Items.Add("Miercuri");
- listBox1.Items.Add("Joi");
- listBox1.Items.Add("Vineri");
- listBox1.Items.Add("Sambata");
- listBox1.Items.Add("Duminica");
- }
- private void button2_Click(object sender, EventArgs e)
- {
- comboBox1.Items.Add("Ianuarie");
- comboBox1.Items.Add("Februarie");
- comboBox1.Items.Add("Martie");
- comboBox1.Items.Add("Aprilie");
- comboBox1.Items.Add("Mai");
- comboBox1.Items.Add("Iunie");
- comboBox1.Items.Add("Iulie");
- comboBox1.Items.Add("August");
- comboBox1.Items.Add("Septembrie");
- comboBox1.Items.Add("Octombrie");
- comboBox1.Items.Add("Noiembrie");
- comboBox1.Items.Add("Decembrie");
- }
- private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
- {
- }
- private void button3_Click(object sender, EventArgs e)
- {
- string s = "Am selectat:";
- listBox2.Items.Clear();
- foreach (object x in checkedListBox1.CheckedItems)
- {
- listBox2.Items.Add(x);
- s = s + x.ToString()+" ";
- }
- label1.Text = s;
- }
- private void label1_Click(object sender, EventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement