Hello All
I understand that all the .net languages sit upon a common underlying layer. I was wondering if any one could translate the following VB code into C#?
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal _
hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, _
lParam As Any) As Long
Const EM_GETFIRSTVISIBLELINE = &HCE
FirstVisibleLine = SendMessage(Text1.hwnd, EM_GETFIRSTVISIBLELINE, 0, ByVal 0&)
The code should return the index of the topmost line displayed in a rich text box.
Please help
Nick James