O
One Handed Man
Ive been working on this since yesterday and its bugging me. Although the
event is firing, The box does not scroll. Can anyone see what Im doing
wrong. I suspect it is stupidly simple.
TIA
SubClass RichtextBox in order to fire the OnVScroll Event
Public Class MyRichTextBox
Inherits RichTextBox
Public Sub PerformVScroll()
MyBase.OnVScroll(EventArgs.Empty)
End Sub
End Class
- This button invokes the PerformVScroll -
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles PerformVscroll.Click
RTB.PerformVScroll()
End Sub
- THis confirms that the event has been raised -
Private Sub handleScroll(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles RTB.VScroll
Console.WriteLine("Handling scroll")
End Sub
--
Regards - One Handed Man
Author : Fish .NET & Keep .NET
=========================================
This posting is provided "AS IS" with no warranties,
and confers no rights.
event is firing, The box does not scroll. Can anyone see what Im doing
wrong. I suspect it is stupidly simple.
TIA
SubClass RichtextBox in order to fire the OnVScroll Event
Public Class MyRichTextBox
Inherits RichTextBox
Public Sub PerformVScroll()
MyBase.OnVScroll(EventArgs.Empty)
End Sub
End Class
- This button invokes the PerformVScroll -
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles PerformVscroll.Click
RTB.PerformVScroll()
End Sub
- THis confirms that the event has been raised -
Private Sub handleScroll(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles RTB.VScroll
Console.WriteLine("Handling scroll")
End Sub
--
Regards - One Handed Man
Author : Fish .NET & Keep .NET
=========================================
This posting is provided "AS IS" with no warranties,
and confers no rights.