помочь доделать программу C#
Добрый День!
Помогите пожалуйста доделать программу я в ней вес написал осталось только сделать обращение с одной формы к элементам другой!
P.S. Надо чтобы при нажатии кнопки во 2 форме, вызывалось действие, которое появляется при нажатии на кнопку в первой форме (копирование в буфер. ) C#
Код из Формы один:
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 WindowsFormsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
Form3 a = new Form3();
private void Form1_Load(object sender, EventArgs e)
{
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void textBox6_TextChanged(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
textBox5.Text = textBox1.Text + Environment.NewLine + textBox2.Text + Environment.NewLine + textBox6.Text + textBox3.Text;
Clipboard.SetText(textBox5.Text);
this.Hide();
a.ShowDialog();
this.Show();
}
private void label1_Click(object sender, EventArgs e)
{
}
private void textBox5_TextChanged(object sender, EventArgs e)
{
}
private void textBox3_TextChanged(object sender, EventArgs e)
{
}
private void label4_Click(object sender, EventArgs e)
{
}
private void textBox6_TextChanged_1(object sender, EventArgs e)
{
textBox6.Text = "12345" + Environment.NewLine + "34567" + Environment.NewLine;
}
}
}
Форма 2:
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 WindowsFormsApplication2
{
public partial class Form3 : Form
{
public Form3()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
}
}
}