我現在想把Form1的textBox1的值
用button1傳到Form2的richTextBox1
private void button1_Click(object sender, EventArgs e)
{
Form2 CTS = new Form2();
if (CTS.ShowInTaskbar)
{
CTS.ShowDialog();
}
CTS.richTextBox1.Text = textBox1.Text;
}
結果:由於Form2的richTextBox1保護層級太高,無法讀取其值XD
如果是用Form2
請問有高手能幫我解決此問題嗎?
謝謝^^"