Наследование: System.Windows.Forms.Form
Пример #1
0
        /// <summary>
        /// Initializes a new instance of the DropDownCellEditor class with default settings
        /// </summary>
        public DropDownCellEditor() : base()
        {
            TextBox textbox = new TextBox();

            textbox.AutoSize    = false;
            textbox.BackColor   = SystemColors.Window;
            textbox.BorderStyle = BorderStyle.None;
            textbox.MouseEnter += new EventHandler(textbox_MouseEnter);
            this.Control        = textbox;

            this.dropDownContainer = new DropDownContainer(this);

            this.droppedDown   = false;
            this.DropDownStyle = DropDownStyle.DropDownList;
            this.dropDownWidth = -1;

            this.parentForm         = null;
            this.activationListener = new ActivationListener(this);
            this.containsMouse      = false;
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the DropDownCellEditor class with default settings
        /// </summary>
        public DropDownCellEditor()
            : base()
        {
            TextBox textbox = new TextBox();
            textbox.AutoSize = false;
            textbox.BackColor = SystemColors.Window;
            textbox.BorderStyle = BorderStyle.None;
            textbox.MouseEnter += new EventHandler(textbox_MouseEnter);
            this.Control = textbox;

            this.dropDownContainer = new DropDownContainer(this);

            this.droppedDown = false;
            this.DropDownStyle = DropDownStyle.DropDownList;
            this.dropDownWidth = -1;

            this.parentForm = null;
            this.activationListener = new ActivationListener(this);
            this.containsMouse = false;
        }