Ejemplo n.º 1
0
        // Needed an event that happens after the form is fully initialized.
        protected override void OnVisibleChanged(EventArgs e)
        {
            base.OnVisibleChanged(e);

            // Extract a reference to the underlying textbox edit field so we can trap the context menu paste click.
            mPasteListener         = new NativeWindowListener((TextBox)this.Controls[1]);
            mPasteListener.Minimum = this.Minimum;
            mPasteListener.Maximum = this.Maximum;
        }
Ejemplo n.º 2
0
        protected override void OnVisibleChanged(EventArgs e)
        {
            base.OnVisibleChanged(e);

            if (_editTextBox == null)
            {
                _editTextBox = _getEditTextBox(this);

                if (_editTextBox != null)
                {
                    _contextMenuListener = new NativeWindowListener(_editTextBox);
                }
            }
        }