forum

Home / DeveloperSection / Forums / C# panel drawing on button press

C# panel drawing on button press

Anonymous User 3659 13-Nov-2013

I want to update the panel graphics (panel will contain simple shapes like circles and rectangles) every time a button is pressed. The code would look something like this:

private void PanelGraphics()
{
    ClearThePanel();  //empties the panel
    FillThePanel();   //draws new shapes in the panel
}
The function would be then called every time a button is pressed, and I understand button_events well enough so that's not a problem. However, I have no idea how to pull off the PanelGraphics() function, and a few links about panel_paint events didn't help me much.

c# c# 
Updated on 13-Nov-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By