I recently wrote an application for a customer that displayed and html file of Terms and Conditions on login, requiring the user to accept or decline. The accept button is required to be inactive until the user scrolls to the end of the document. This was written in C# (.Net 2.0), but the client now wants it rewritten in VB6 as many workstations are still running XP and don't have the required framework installed. The client is one of those that requires authorisation from God in triplicate to install anything on the network, and will not commit to having the .Net framework installed (even though they told me at the outset that it would be)
The code I used to detect scroll to end required the prescence of a named <DIV> element in the html, and the method used can be seen here:
I have tried to replicate this in VB6, but cannot detect the scrolling of the document. Any ideas on how I can do it with standard MS Controls (no 3rd party dll's etc)?