Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 158343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T10:39:53+00:00 2026-05-11T10:39:53+00:00

my question is as is:How to detect if a scrollbar is at or not

  • 0

my question is as is:How to detect if a scrollbar is at or not at the end of a richtextbox?

edit: when I say at the end I mean completely scrolled to the bottom, not anywhere else.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T10:39:54+00:00Added an answer on May 11, 2026 at 10:39 am

    Check out the GetScrollRange and GetScrollPos API…

    Private Const SBS_HORZ = 0 Private Const SBS_VERT = 1  <DllImport('user32.dll')> _ Public Function GetScrollRange(ByVal hWnd As IntPtr, ByVal nBar As Integer, _                                ByRef lpMinPos As Integer, _                                ByRef lpMaxPos As Integer) As Boolean End Function  <DllImport('user32.dll')> _ Public Function GetScrollPos(ByVal hWnd As Integer, _                              ByVal nBar As Integer) As Integer End Function  // ...  Dim scrollMin as Integer = 0 Dim scrollMax as Integer = 0  If(GetScrollRange(rtb.Handle, SBS_VERT, scrollMin, scrollMax) Then    Dim pos as Integer = GetScrollPos(rtb.Handle, SBS_VERT)     // Detect if they're at the bottom EndIf 

    Notes:

    To determine if the scrollbar is visible, call GetWindowLong and check for WS_VSCROLL

    To determine the max value the slider can get to, call GetScrollInfo; I think the maximum value is

    scrollMax - largeChange + 1 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My question is not like this one: Browser-independent way to detect when image has
The question of how to detect a click on anywhere except a specified element
Short question: Is it possible to detect window.open() in a UIWebView using the UIWebViewDelegate
Possible Duplicate: Detect multitouch with Ontouch listener Android I have a question about detecting
This is a question on how to detect which button was clicked in the
My question is the folowing Is there a solid javascript code to detect if
Possible Duplicate: Detect Facebook page fan on the website I have a question to
My question is a NodeJS newbie question. I would like to somehow detect if
I think the question title seems to explain eveything. I want to detect whether
I am using jQuery to detect drop on target, the target in question is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.