Avoid Flickering in Windows Forms?

前端 未结 3 1027
悲哀的现实
悲哀的现实 2020-12-15 00:10

Double buffering not working with combo-box. is there any another methods to avoid flickering in windows forms?

i have one windows form with number of panels in it.

3条回答
  •  余生分开走
    2020-12-15 00:29

        protected override CreateParams CreateParams
        {
            get
            {
                CreateParams handleParam = base.CreateParams;
                handleParam.ExStyle |= 0x02000000;   // WS_EX_COMPOSITED       
                return handleParam;
            }
        }
    

提交回复
热议问题