using System.Runtime.InteropServices;
[DllImport("user32.dll")]
public static extern int SendMessage(int hWnd, int Msg, int wParam, int lParam);
public const int EM_GETSCROLLPOS = 0x0400;
public const int EM_SETSCROLLPOS = 0x0080;
private void richTextBox3_VScroll(object sender, EventArgs e)
{
//I need some variables here?
SendMessage(richTextBox3.Handle.ToInt32(), EM_GETSCROLLPOS, 0, 0);
SendMessage(richTextBox1.Handle.ToInt32(), EM_SETSCROLLPOS, 0, 0);
}
Пожалуйста, будьте терпеливы, я старый и не делал этого года. 0);? < /P> [code] using System.Runtime.InteropServices; [DllImport("user32.dll")] public static extern int SendMessage(int hWnd, int Msg, int wParam, int lParam);
public const int EM_GETSCROLLPOS = 0x0400; public const int EM_SETSCROLLPOS = 0x0080;
private void richTextBox3_VScroll(object sender, EventArgs e) { //I need some variables here?