Form graphics not set when form loads

后端 未结 2 770
感动是毒
感动是毒 2021-01-26 19:02

My form has a group box which contains two overlapping rectangles. The form\'s other controls are two sets of four numeric up down controls to set the rectangles\' colors. (nud

2条回答
  •  闹比i
    闹比i (楼主)
    2021-01-26 19:32

    I suspect that painting in the Load event is a little premature. Try painting in the Paint event.

    Or:

    Could you just use a couple of Panel controls, and set their background colors?

提交回复
热议问题