Laurent Nicot - 2011-10-04

In TreeViewAdv.cs

Add this function to update the scroll bars when tree become visible:
protected override void OnVisibleChanged(EventArgs e)
{
if (Visible)
SafeUpdateScrollBars();
base.OnVisibleChanged(e);
}

In function UpdateScrollBars, I add the first line (_hScrollBar.Visible = false), because sometimes VScrollBar height is wrong.
private void UpdateScrollBars()
{
_hScrollBar.Visible = false;
UpdateVScrollBar();
UpdateHScrollBar();
UpdateVScrollBar();
UpdateHScrollBar();
_hScrollBar.Width = DisplayRectangle.Width;
_vScrollBar.Height = DisplayRectangle.Height;
}