Have you found ,why is your program is slow down.As for as I can tell one thing.If you read the length of line which is more , then it will slow.For Getting the length
you have to use this function
VB Code:
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 WM_GETTEXTLENGTH As Long = &HE Private Function Getlength(rich As RichTextBox) As Long 'Function To get the length of the text box Getlength = SendMessage(rich.hwnd, WM_GETTEXTLENGTH, 0&, 0&) End Function




Reply With Quote