Obtains the number of the current page in a RichTextEdit control.
RichTextEdit controls
rtename.SelectedPage ( )
Integer. Returns the number of the current page in rtename. If an error occurs, SelectedPage returns -1.