public void DisplayCategoryForm()
        {
            Focus();

            /*
             * _categoryDisplayForm = new CategoryDisplayFormM1(this, _categoryContext) ;
             * _categoryDisplayForm.MinDropDownWidth = 0;
             * IMiniFormOwner miniFormOwner = FindForm() as IMiniFormOwner;
             * if (miniFormOwner != null)
             *  _categoryDisplayForm.FloatAboveOwner(miniFormOwner);
             * _categoryDisplayForm.Closed += new EventHandler(_categoryDisplayForm_Closed);
             * using ( new WaitCursor() )
             *  _categoryDisplayForm.Show();
             */

            Point anchor = PointToScreen(new Point(RightToLeft == RightToLeft.Yes ? 0 : ClientSize.Width, ClientSize.Height));

            _categoryDisplayForm             = new CategoryDisplayFormW3M1(_categoryContext, anchor);
            _categoryDisplayForm.SelfDispose = true;
            IMiniFormOwner miniFormOwner = FindForm() as IMiniFormOwner;

            if (miniFormOwner != null)
            {
                _categoryDisplayForm.FloatAboveOwner(miniFormOwner);
            }
            _categoryDisplayForm.Closed += _categoryDisplayForm_Closed;
            using (new WaitCursor())
                _categoryDisplayForm.Show();
        }
 private void _categoryDisplayForm_Closed(object sender, EventArgs e)
 {
     _categoryDisplayForm = null;
     Invalidate();
 }
 private void _categoryDisplayForm_Closed(object sender, EventArgs e)
 {
     _categoryDisplayForm = null;
     Invalidate();
 }
        public void DisplayCategoryForm()
        {
            Focus();

            /*
            _categoryDisplayForm = new CategoryDisplayFormM1(this, _categoryContext) ;
            _categoryDisplayForm.MinDropDownWidth = 0;
            IMiniFormOwner miniFormOwner = FindForm() as IMiniFormOwner;
            if (miniFormOwner != null)
                _categoryDisplayForm.FloatAboveOwner(miniFormOwner);
            _categoryDisplayForm.Closed += new EventHandler(_categoryDisplayForm_Closed);
            using ( new WaitCursor() )
                _categoryDisplayForm.Show();
            */

            Point anchor = PointToScreen(new Point(RightToLeft == RightToLeft.Yes ? 0 : ClientSize.Width, ClientSize.Height));
            _categoryDisplayForm = new CategoryDisplayFormW3M1(_categoryContext, anchor);
            _categoryDisplayForm.SelfDispose = true;
            IMiniFormOwner miniFormOwner = FindForm() as IMiniFormOwner;
            if (miniFormOwner != null)
                _categoryDisplayForm.FloatAboveOwner(miniFormOwner);
            _categoryDisplayForm.Closed += _categoryDisplayForm_Closed;
            using (new WaitCursor())
                _categoryDisplayForm.Show();
        }