Home > Net >  C # tabcontrol re-paint, how to avoid repeating the drawing
C # tabcontrol re-paint, how to avoid repeating the drawing

Time:11-17

Tabcontrol re-paint, repeated workload is too big, each switch pages will lead to all of the pages of tabcontrol re-paint, how to avoid repeated drawing


Check the related information from the Internet now have the following a few, but I'm not solve the problem, may be less likely to use, the great god help me trouble, especially anxiety, thank thank you
https://zhidao.baidu.com/question/456368211050502565.html
https://blog.csdn.net/qq_17459305/article/details/105154625

CodePudding user response:

refer to the original poster sinat_14913435 response:
tabcontrol re-paint, repeated workload is too big, each switch pages will lead to all of the pages of tabcontrol re-paint, how to avoid repeated drawing


Check the related information from the Internet now have the following a few, but I'm not solve the problem, may be less likely to use, the great god help me trouble, especially anxiety, thank thank you
https://zhidao.baidu.com/question/456368211050502565.html
https://blog.csdn.net/qq_17459305/article/details/105154625


Switching TabPanel visibility changed, naturally want to redraw, try adding a judgment: when redrawing

 
If (e.I ndex==tabControl1. SelectedIndex)
{
Um participant raphics. FillRectangle (new SolidBrush (BackColor), e.B ounds);
Console. WriteLine (e.I ndex);
}



  •  Tags:  
  • C#
  • Related