Drawing on top of controls inside a panel (C# WinForms)

前端 未结 10 2248
暖寄归人
暖寄归人 2020-11-29 22:27

I know this question had been asked more than a few times, but so far I haven\'t been able to find a good solution for it.

I\'ve got a panel with other control on it

10条回答
  •  遥遥无期
    2020-11-29 22:43

    Original code should be :

        protected override CreateParams CreateParams
        {
            get
            {
                CreateParams cp;
                cp = base.CreateParams;
                cp.Style &= 0x7DFFFFFF; //WS_CLIPCHILDREN
                return cp;
            }
        }
    

    This works !!

提交回复
热议问题