Refresh User Control look
-
I have custom windows user control. It is just a textbox puted on a panel. And panel is on User control. The panel OnPaint is overriden. Everything looks fine except when some form comes on the control or menu open on it and I move or close the above form, the user control looks does not refresh completely extra lines from closed form remain on the panel. Should I call Invalidate() or Refresh() from specific event of user control? Thanks
Mazy
"This chancy chancy chancy world." -
I have custom windows user control. It is just a textbox puted on a panel. And panel is on User control. The panel OnPaint is overriden. Everything looks fine except when some form comes on the control or menu open on it and I move or close the above form, the user control looks does not refresh completely extra lines from closed form remain on the panel. Should I call Invalidate() or Refresh() from specific event of user control? Thanks
Mazy
"This chancy chancy chancy world."does your Paint handler contain a
base.OnPaint()
? :)Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.