DrawRectangle() on click event

  • Thread starter Thread starter mig16
  • Start date Start date
M

mig16

Guest
hi ppl, i have a panel, and i want that when the user clicks the panel ,a rectangle be drawn, but my surprise is i cant get a Graphics class reference for draw the rectangle,,,

i need a Graphics class to acces the funciton DrawRectangle().. but i dont have a PainteventArgs on the click event, so i cant reference the Grpahics class....and i cant paint

any 1 knows how to draw a rectangle on a click event?

thx

mig16

Continue reading...
 
Back
Top