How can I sync the scrolling of two multiline textboxes in C# (WinForms)?
When you scroll up/down a line in TextBox A, TextBox B should scroll up/down too. The same
You can change this line:
if (m.Msg == 0x115) && !scrolling && Buddy != null && Buddy.IsHandleCreated)
to this:
if ((m.Msg == 0x115 || m.Msg==0x20a) && !scrolling && Buddy != null && Buddy.IsHandleCreated)
and it will support scrolling with the mouse wheel as well.