473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How can I tell if a component is scrolled to the bottom?

That pretty much says it all. How can I tell, in my code, if my
component (which has a vertical scroll bar) is scrolled all the way to
the bottom? In this case it's a DataGridView, but I'm sure it's
probably the same with all components.

So how do I do this, please?

tia,
rts

Oct 6 '06 #1
1 1191
rts,

The only way that I can think of doing it is getting the handle for the
scrollbar that is being hosted in the window and then using the Win32 API
functions to determine the max value of the scrollbar, and the current
value.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Rex the Strange" <ro********@widgetinc.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
That pretty much says it all. How can I tell, in my code, if my
component (which has a vertical scroll bar) is scrolled all the way to
the bottom? In this case it's a DataGridView, but I'm sure it's
probably the same with all components.

So how do I do this, please?

tia,
rts

Oct 7 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mel | last post by:
is it possible to place a large number of URL's in a scrolled window inside my broser page ? i can not place one URL on each line and generate 100's of pages thanks Mel
4
by: Sergio Millich | last post by:
I have an annoyîng problem with a javascript tree. When you scroll down to the bottom of the tree and click to open a node the tree is refreshed and scrolls back to the top, hiding the node. Is...
2
by: M D | last post by:
System.Windows.Forms.Textbox Imagine a multiple line text box that never gets focus. For instance the conversation box of a chat screen. How can you keep it scrolled to the bottom as lines...
0
by: Widey | last post by:
Hi there, I have an application which we are to use to get our Users to agree to the IT policy. The application basically consists of a Rich Text Box which contains our IT Policy, and an 'I...
5
by: balakrishnan.dinesh | last post by:
Hi frnds, Here is my secanrio. I have created a table , it seems to be, ~ Table's head part (table headings) will be static , and rest of part (rest of the rows) can be scrolled vertically...
3
by: vijay.db | last post by:
Hi Group, Running DB2 V8.2 Fxpack 9 in AIX 5.2, I get the following error frequently and my instance is stopped...collected some info like: the signal received is 11 which is SEGMENTATION...
1
by: lister | last post by:
Hi, I have a div with fluid content, below which I want a scrollable div. I can't work out how to style the scrollable div to say "use the rest of the space in the container". The best I can...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.