Advertisement
ntamas

órai0303

Mar 5th, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.33 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9.  
  10. namespace WindowsFormsApplication1
  11. {
  12.     public partial class Form1 : Form
  13.     {
  14.         public Form1()
  15.         {
  16.           InitializeComponent();
  17.         }
  18.         private void Form1_Load(object sender, EventArgs e)
  19.         {
  20.          
  21.         }
  22.         private void groupBox1_Enter(object sender, EventArgs e)
  23.         {
  24.  
  25.         }
  26.  
  27.         private void button1_Click(object sender, EventArgs e)
  28.         {
  29.           listBox1.Items.Add(textBox3.Text);
  30.         }
  31.         private void label1_Click(object sender, EventArgs e)
  32.         {
  33.  
  34.         }
  35.         private void Textek()
  36.         {
  37.           label1.Text = textBox3.Text = textBox1.Text + " " + textBox2.Text;
  38.         }
  39.         // static string bal, jobb;
  40.         private void textBox1_TextChanged(object sender, EventArgs e)
  41.         {
  42.           Textek();
  43.         }
  44.         private void textBox2_TextChanged(object sender, EventArgs e)
  45.         {
  46.           Textek();
  47.         }
  48.         private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
  49.         {
  50.           button1.Text = Convert.ToString(listBox1.Items[listBox1.SelectedIndex]);
  51.         }
  52.     }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement