[DllImport("user32.dll")] private static extern int SendMessage(IntPtr hWnd, uint Msg, int wParam, int lParam);
private int GetLineCount(TextBox txt) { return SendMessage(txt.Handle, 0xBA, 0, 0); }
Powered by: 博客园 Copyright © 2024 Snapping Powered by .NET 9.0 on Kubernetes