|
-
Feb 22nd, 2004, 06:13 AM
#1
Thread Starter
PowerPoster
Scroll to the end of a Scrollbar
I'm adding a horizontal scrollbar to a listbox, and I need it scrolled all the way to the right end? Do you use SendMessage? :unsure:
-
Feb 22nd, 2004, 02:27 PM
#2
Fanatic Member
Hi Madness.
When you say adding a scrollbar do you mean an external one like a hscroll control or not?
Cheers
-
Feb 22nd, 2004, 02:29 PM
#3
Not NoteMe
I think you could just get the listbox to select the last entry in it's list.
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
-
Feb 22nd, 2004, 05:18 PM
#4
Fanatic Member
Is this what you require?
VB Code:
Private Declare Function SendMessageByNum Lib "user32" _
Alias "SendMessageA" (ByVal hwnd As Long, ByVal _
wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Const LB_SETHORIZONTALEXTENT = &H194
Private Sub Form_Load()
SendMessageByNum list1.hwnd, LB_SETHORIZONTALEXTENT, 250, 0
End Sub
-
Feb 22nd, 2004, 08:13 PM
#5
Addicted Member
List1.Listindex = List1.List(list1.Listcount-1)
Never tie a rock to your ankle while randomly selecting stones to throw from high places.
-
Feb 22nd, 2004, 11:29 PM
#6
Thread Starter
PowerPoster
Originally posted by laserman
Is this what you require?
VB Code:
Private Declare Function SendMessageByNum Lib "user32" _
Alias "SendMessageA" (ByVal hwnd As Long, ByVal _
wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Const LB_SETHORIZONTALEXTENT = &H194
Private Sub Form_Load()
SendMessageByNum list1.hwnd, LB_SETHORIZONTALEXTENT, 250, 0
End Sub
Thats what I'm doing at the moment, but I need to horizontal scrollbar scrolled all the way to the end.
-
Feb 24th, 2004, 03:51 AM
#7
Thread Starter
PowerPoster
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|