View Single Post
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: To position textbox scrollbar at bottom of text

 
0
  #4
Jan 12th, 2009
  1. 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
  2. Const WM_VSCROLL = &H115
  3. Const SB_BOTTOM = 7
  4.  
  5. Private Sub Text1_Change()
  6. SendMessage Text1.hwnd, WM_VSCROLL, SB_BOTTOM, 0
  7. End Sub
Reply With Quote