Display Line Numbers for a Rich Text Box Control

Category:
Forms and Controls
Type:
Modules
Difficulty:
Advanced
Author:
Eric Banker

Version Compatibility:

More information:
This form module demonstrates how to display the current line number in a picture box on the left side of a rich text box control. It works both when you type and when you scroll. Very useful for learning about various messages you can send to edit controls via SendMessage API functions.

NOTE: According to the author, this may not work correctly under Windows 2000. He is currently investigating the reasons for this.


Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download scrollingexample.zip