. Net RichTextBox Verticle Scroll Bars

  • Thread starter Thread starter Steven H
  • Start date Start date
S

Steven H

I have a richtextbox with the Scrollbar property set to vertical. If
the text in the box overflows the size a vertical scrollbar is
visible. If the text fits inside the box the scrollbar is not
visible.

Is there a way to programmatically check to see if the scroll bar is
visible or not?

Thanks,
Steven
 
Hi Steven,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to know whether the scroll bar
of the rich text box is visible programatically. If there is any
misunderstanding, please feel free to let me know.

As far as I know, the scroll bar of the rich text box was painted on it and
there is no property for the rich text box to get whether the scroll bar is
visible. So I don't think we can get this information whether checking the
properties or finding child window with the handle for rich text box.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Back
Top