是什么原因? 其它控制显示是罚款......
public CustomControl()
{
SetStyle(ControlStyles.ResizeRedraw, true);
SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
SetStyle(ControlStyles.UserPaint, true);
}
习俗控制在表LayoutPanel。
......
Edit: For clarification: Suppose you have a window-sized control with a small modal dialog form on top. When you move the dialog window, it s like your painting with the window on the control (the borders are painted on the control). The control doesn t repaint itself like other controls do on the same form, ie montcalendar or other custom controls. I can t seem to find the cause of this ?
参考书目: