i want my table to disappear at the load time, and then reappear when i call it.

here is my code so far...

private void Chess_Load(object sender, EventArgs e)
        {
            PromotionTable.Visible = false;
            

        }

and one of the functions that is responsible to make it appear

public void piecePromotionChange()
        {

            PromotionTable.Visible = true;
        }

but it doesnt make it appear

Recommended Answers

All 2 Replies

Try adding PromationTable.Invalidate() right after you set Visible to true.

it wont work :(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.