TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
nick 0
NA
18
0
VB to C# translation
Dec 4 2004 11:28 PM
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
Reply
Answers (
3
)
Custom Control Property (list)
CheckBox in a DataGrid