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)
- {
- private void textBox1_TextChanged(object sender, EventArgs e)
- {
- if (textBox1.TextLength>0)
- label1.Text = textBox1.Text;
- else
- MessageBox.Show("wprowadz tekst");
- }
- private void textBox2_TextChanged(object sender, EventArgs e)
- {
- if (button3_Click.x==true)
- {
- int a;
- int c;
- Int32.TryParse(textBox1.Text,out c);
- if (c!=0)
- {
- a = Int32.Parse(textBox1.Text);
- if (textBox1.Lines.Length < (a - 1))
- {
- string b;
- //b = textBox2.Lines[a];
- MessageBox.Show(textBox2.Lines[a]);
- }
- }
- }
- else
- MessageBox.Show("input error");
- }
- private void button3_Click(object sender, EventArgs e)
- {
- bool x;
- x = true;
- }
- }
- }
- button1.Text = "tekst";
- Close();
- }
- private void button2_Click(object sender, EventArgs e)
- {
- button1.Text = "inna nazwa";
- }
- private void label1_Click(object sender, EventArgs e)
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement