private void button2_Click(object sender, EventArgs e)
        {
            ChangeLink cl = new ChangeLink();
            // Show testDialog as a modal dialog and determine if DialogResult = OK.
            if (cl.ShowDialog() == DialogResult.OK)
            {
                // Read the contents of testDialog's TextBox. 
               // cl.AcceptButton.DialogResult = DialogResult.OK;
                this.label4.Text = cl.textBox1Text;
            }
            else
            {
                this.label4.Text = "Cancelled";
            }
            cl.Dispose();
        }
ボタンをクリックすると、新しいフォームと新しいフォーム内の textBox1 が表示されます。そして、textBox1 に何かを入力することはできますが、OK または CANCEL ボタンがどこにも表示されません。新しいフォーム デザイナーでそれらを手動で追加する必要がありますか? そして、それらをどのように使用するのですか?
これが私の新しいフォームのコードです。新しいフォーム textBox1 に何かを入力し、textBox1 のテキストを Form1 label4 に渡します。
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 GatherLinks
{
    public partial class ChangeLink : Form
    {
        public ChangeLink()
        {
            InitializeComponent();
        }
        public string textBox1Text
        {
            get
            {
                return textBox1Text = textBox1.Text;
            }
            set
            {
               
            }
        }
    }
}
Form.ShowDialog の OK ボタンと CANCEL ボタンはどこにありますか?