[Mono-winforms-list] An odd redraw problem

Paul F. Johnson paul at all-the-johnsons.co.uk
Sat Oct 8 08:33:09 EDT 2011


Hi,

> > If I click the NumericUpDown, the code inserts new boxes and also
> > reduces it as expected. However, if I click once to create 3 boxes and
> > then go back down to 2, half of the third row still remains and I have
> > no idea why!
> 
> Your code does not seem to remove controls. I see how you
> create and add them to some container, but you never
> remove them.

Ah! I thought that as I dynamically create them, they'd just be removed
(if I go from say 6 rows to 5 rows, row 6 is completely removed).

How do I go about removing them? Ideally, I'd remove all then add the
new ones in.

Thanks

Paul

-- 
Vertraue mir, ich weiss, was ich mache...



More information about the Mono-winforms-list mailing list