GroupBox OnPaintBackground

  • Thread starter Thread starter Bob C.
  • Start date Start date
B

Bob C.

Hi All,

I placed a GroupBox on form. I am doing some drawing on groupbox.
I dont want to get GroupBox's background erased while i call
myGroupbox.Invalidate().
How can i stop erasing the background?

Thanks,
Sudhakar.
 
override the GroupBox, override the OnPaint method and put in a call to
base.OnPaint before you do your drawing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top