Exemplo n.º 1
0
        public virtual void DropDownControl(System.Windows.Forms.Control control)
        {
            using (m_dropDown = new DevAge.Windows.Forms.DropDown(control, this, this.ParentForm))
            {
                // [email protected] : The default Dropdown flag is CloseOnEscape.
                // in this we give user the option to select the dropdown flag.
                m_dropDown.DropDownFlags = DropDownFlags;

                //[email protected]: To notify the user if the dropdown was closed due to a
                // (pressing Escape key)cancel action or by changing focus or pressing Enter key which corresponds to an accept action.
                m_dropDown.DropDownClosed += DropDownClosed;
                m_dropDown.ShowDropDown();

                //[email protected]:In Syscon, on multiple open and close operations,
                //at times, due to Application.DoEvents in OnDropDownOpen of DropDown.cs, m_dropDown becomes null
                if (m_dropDown != null)
                {
                    //[email protected]: To notify the user if the dropdown was closed due to a
                    // (pressing Escape key)cancel action or by changing focus or pressing Enter key which corresponds to an accept action.
                    m_dropDown.DropDownClosed -= DropDownClosed;
                    m_dropDown.Close();
                }
            }
            m_dropDown = null;
        }
        public virtual void DropDownControl(System.Windows.Forms.Control control)
        {
            using (m_dropDown = new DevAge.Windows.Forms.DropDown(control, this, this.ParentForm))
            {
                m_dropDown.DropDownFlags = DevAge.Windows.Forms.DropDownFlags.CloseOnEscape;

                m_dropDown.ShowDropDown();

                m_dropDown.Close();
            }
            m_dropDown = null;
        }
Exemplo n.º 3
0
		public virtual void DropDownControl ( System.Windows.Forms.Control control )
		{
            using (m_dropDown = new DevAge.Windows.Forms.DropDown(control, this, this.ParentForm))
            {
                m_dropDown.DropDownFlags = DevAge.Windows.Forms.DropDownFlags.CloseOnEscape;

                m_dropDown.ShowDropDown();

                m_dropDown.Close();
            }
            m_dropDown = null;
        }