Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1330
Is Vertical ScrollBar Visible
posted

Is there a way to find out if the vertical scrollbar is visible in a Tree?

Parents
No Data
Reply
  • 28407
    posted

    HI estatemaster,

    i wrote a recursive routine that searches for the vertical scroll bar. 

     private bool search(UIElementsCollection children)
            {
                for (int i = 0; i < children.Count ; i++)
                {
                    if (childrenIdea.ToString() == "Infragistics.Win.UltraWinTree.VerticalScrollbarUIElement")
                    {
                        
                        return true;
                    }
                    else
                    {
                        richTextBox1.Text += " " + childrenIdea.ToString() + "\n";
                        if (childrenIdea.HasChildElements)
                        {
                            search(childrenIdea.ChildElements);
                        }
                    }
                    //  MessageBox.Show(ultraTree1.UIElement.ChildElementsIdea.ToString());
                }
                return false;
            }

Children
No Data