コード例 #1
0
        private void textBoxFileH_Enter(object sender, EventArgs e)
        {
            TextBox      editingTextBox = ((TextBox)sender);
            TextEditForm ed             = new TextEditForm();
            Point        scp            = editingTextBox.PointToScreen(new Point(0, 0));

            ed.Location = new Point(scp.X + 10, scp.Y + 4);
            ed.Text     = editingTextBox.Text;
            if (ed.ShowDialog(this) == DialogResult.OK)
            {
                editingTextBox.Text = ed.Text;
            }
            ed.Dispose();
        }
コード例 #2
0
ファイル: WordMakeOption.cs プロジェクト: h87kg/wordmake
 private void textBoxFileH_Enter(object sender, EventArgs e)
 {
     TextBox editingTextBox = ((TextBox)sender);
     TextEditForm ed = new TextEditForm();
     Point scp = editingTextBox.PointToScreen(new Point(0, 0));
     ed.Location = new Point(scp.X + 10, scp.Y + 4);
     ed.Text = editingTextBox.Text;
     if (ed.ShowDialog(this) == DialogResult.OK)
     {
         editingTextBox.Text = ed.Text;
     }
     ed.Dispose();
 }