예제 #1
0
        public void Find()
        {
            using (HtmlSourceEditorFindTextForm findTextForm = new HtmlSourceEditorFindTextForm(_textBox))
            {
                // determine ownership and location of form
                Form parentForm = _textBox.FindForm();
                // No need to to manually center when we can just allow the form to center itself on the parent
                //findTextForm.StartPosition = FormStartPosition.CenterParent ;
                //findTextForm.Top = parentForm.Top + (parentForm.Height/2) - (findTextForm.Height/2) ;
                //findTextForm.Left = parentForm.Right - findTextForm.Width - 25 ;

                // show the form
                findTextForm.ShowDialog(parentForm);
            }
        }
        public void Find()
        {
            using (HtmlSourceEditorFindTextForm findTextForm = new HtmlSourceEditorFindTextForm(_textBox))
            {
                // determine ownership and location of form
                Form parentForm = _textBox.FindForm();
                // No need to to manually center when we can just allow the form to center itself on the parent
                //findTextForm.StartPosition = FormStartPosition.CenterParent ;
                //findTextForm.Top = parentForm.Top + (parentForm.Height/2) - (findTextForm.Height/2) ;
                //findTextForm.Left = parentForm.Right - findTextForm.Width - 25 ;

                // show the form
                findTextForm.ShowDialog(parentForm);
            }
        }