コード例 #1
0
 protected override void OnDropDownFormCreated(DropDownForm dropDownForm)
 {
     if (_currencyManager != null)
     {
         Find(EditValue);
         dropDownForm.BindingContext[_dataGrid.DataSource].Position = _currencyManager.Position;
     }
     base.OnDropDownFormCreated(dropDownForm);
 }
コード例 #2
0
        private DropDownForm CreateDropDownForm()
        {
            DropDownForm form = new DropDownForm(this, _dropDownControl);

            form.TopMost         = true;
            form.FormBorderStyle = FormBorderStyle.None;
            form.Owner           = (Form)ControlHelper.GetParentForm(this);
            form.StartPosition   = FormStartPosition.Manual;
            form.KeyPreview      = true;
            form.Size            = CalulateDropDownSize();
            form.MinimumSize     = new Size(Width, 100);
            new FocusEmulator(form.Owner);
            OnDropDownFormCreated(form);
            return(form);
        }
コード例 #3
0
 public void ShowDropDown()
 {
     if (!_isDropDownVisible)
     {
         _dropDownForm = CreateDropDownForm();
         WireDropDownFormEvents();
         PositionDropDownHolder(_dropDownForm);
         _dropDownForm.Show();
         _isDropDownVisible = true;
     }
     else
     {
         CloseDropDown(false, true);
     }
 }
コード例 #4
0
 protected virtual void OnDropDownFormCreated(DropDownForm dropDownForm)
 {
 }