OnPaintBackground

  • Thread starter Thread starter 2G
  • Start date Start date
2

2G

Hi ,

I've create a panel that draws a gradient in the OnPaintBackground event but
when I place a number of those panels on my form ,I get the following error
: " At least one element in the source array could not be cast down to the
destination array type."
Also when I minimize/maximize my app , the controls are not repainted untill
I resize the app.

Can anyone explane what this means and how I can solve this?

Thx.
 
2G,

That's not a lot of information to go on. Where are you getting the
error? Is it in the override of OnPaintBackground? Do you have sample code
that shows the problem?
 
Back
Top