i have a winform that needs to print a chessboard, i have a table with some controls in it.
what i did was to set it invisible when the form loads
private void Chess_Load(object sender, EventArgs e)
{
PromotionTable.Visible =false;
}
and then make it visible once the function is triggered.
public void piecePromotionChange(Pieces[,] pieces, int rowEnd2, int columnEnd2, bool blackOrNot)
{
PromotionTable.Visible = true;
}
but it still remains, invisible 🙁
You’ll need to invalidate/refresh that portion of the screen. Setting the Visible property does not trigger a redraw..