Herfried K. Wagner [MVP] wrote:
"ShaneO" <sp****@optusnet.com.auschrieb:
>In a Windows Form I have a RichTextBox with Multiline = True and
ScrollBars = Vertical. As expected, when Text is loaded into the RTB
the Vertical ScrollBar will appear if needed.
Does anyone know of a way (in Code) to determine if the Vertical
ScrollBar is visible or not? (VB 2005)
Check out my implementation that uses p/invoke:
<URL:http://dotnet.mvps.org/dotnet/samples/controls/ThemedRichTextBox.zip>
Thank-you for your link.
I was able to execute your application and I could see the results
(including the extra Properties).
The problem I'm having however is that I can't seem to implement your
code for the enhanced RTB. If I try I get -
"Namespace of type specified in the Imports
'ThemedRichTextBox.NativeMethods' doesn't contain any public member.....
I've added the files - "ExtendedRichTextBox.vb" and "NativeMethods.vb"
but can't do anything beyond that!
I'm also wondering, is it really necessary to add an enhanced control
just to achieve what I want? Surely there must be an easier way to find
out if a ScrollBar is visible or not?!?!?
ShaneO
There are 10 kinds of people - Those who understand Binary and those who
don't.