Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Bug with Panel and AutoScroll = true

$
0
0

Encountered the following problem with the Panel has AutoScroll = true, add items to it using panel.Controlls.Add () and offset Top these elements will eventually appear Scroll, and I need you delete items, come out for the Panel - disappears and everything is fine, but I noticed a bug, if you take the scroll into focus and remove the last item that does not fit, scroll as if lost, but on the screen it will remain (as a bug rendering).

All else fails, try to do Panel.Update () or Panel.Invalidate (true) immediately after removing an element, but in vain, tried to even put Panel.Invalidate (true) on a timer, which is called every 50 ms, but this led to that this scroll flickers still three seconds, and then just disappears.

Sorry for my bad english, I also shot a video to make it clear: http://www.youtube.com/watch?v=2UvGvWL3y6c

In advance, thanks.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>