Re: Is there a way to prevent a RichTextBox from scrolling?
- From: "Brad Wood" <dude@xxxxxxxxx>
- Date: Fri, 26 Jan 2007 12:56:29 -0700
Thanks for that; same results (I was doing basically the same thing).
When I set the appropriate attribute on the declaration for
GetScrollPos:
[DllImportAttribute( "user32.dll", SetLastError = true )]
And call Marshal.GetLastWin32Error after calling GetScrollPos, I get "The
window does not have scroll bars" when that is the case, but when my
RichTextBox does have scroll bars, I always get "The system cannot find the
file specified".
"Matthias Truxa" <usmail4matt_removeprefix@xxxxxxx> wrote in message
news:<OECnGPoPHHA.4424@xxxxxxxxxxxxxxxxxxxx>...
// this is a class for syntax highlighting // i found somewhere because i
had the same problem.
// you should have a try. take a look at setscrollpos:
.
- References:
- Is there a way to prevent a RichTextBox from scrolling?
- From: Brad Wood
- Re: Is there a way to prevent a RichTextBox from scrolling?
- From: Matthias Truxa
- Is there a way to prevent a RichTextBox from scrolling?
- Prev by Date: Re: Datagridview exception
- Next by Date: Re: AutoComplete ComboBox with DroppedDown=true
- Previous by thread: Re: Is there a way to prevent a RichTextBox from scrolling?
- Next by thread: DrawLine on top of controls
- Index(es):