robertb_NZ
Well-known member
I have a form containing a RichTextBox called ProgramArea; if the text in ProgramArea exceeds the space available then scroll bars appear automatically. When users click the [CHECK] button their program is checked and the text changed (colored, expanded, error messages, etc), and the RTB is re-displayed, but it is always re-displayed starting from the top of the text. I would like it to be re-displayed with the same scrolling as before.
Internally the logic of [Check] is: -
However I can't write this, and I can't find any way of referring to the properties of the automatic ScrollBars associated with the RTB. So how do I prevent the program from re-displaying the RTB from the top?
If you want to see some context, have a look at http://www.jazzsoftware.co.nz/Videos/demo1intro/demo1intro.html about 30 seconds from start.
Internally the logic of [Check] is: -
Private Sub btnCheck_Click(sender As System.Object, e As System.EventArgs) Handles btnCheck.Click
so that I'd like to surround the JazzProcessTo reference with something like this: -JazzProcessTo(0, 9999) ' From start to finish
End SubDim SaveVScroll = ProgramArea.VScroll.Value
JazzProcessTo(0, 9999)
ProgramArea.VScroll.Value = SaveVScroll
JazzProcessTo(0, 9999)
ProgramArea.VScroll.Value = SaveVScroll
However I can't write this, and I can't find any way of referring to the properties of the automatic ScrollBars associated with the RTB. So how do I prevent the program from re-displaying the RTB from the top?
If you want to see some context, have a look at http://www.jazzsoftware.co.nz/Videos/demo1intro/demo1intro.html about 30 seconds from start.