[c#] funky winforms tableLayoutPanel

I know winForms is dead

I used a tableLayoutPanel with pictureboxes inside its rows and columns. The problems are:

  1. pictureboxes and labels inside starts out white then everything paints fine after i move the window.
  2. It doesn't refresh (i've set clicking on it to change the drawn shape to change color) unless i move the part of the window past the screen's viewable boundary.

I'm drawing in the tableLayoutPanel_CellPaint method and calling tableLayoutPanel.Invalidate() in the last line. Set doublebuffered to true. I've also done here:


Still flickers. If only I had time, i would have tried to do this in wpf. (never used it)

by silentcon via /r/csharp

Leave a Reply