RE: How to scroll at the last item in the listbox through an event

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: James Divine (JamesDivine_at_discussions.microsoft.com)
Date: 10/08/04


Date: Fri, 8 Oct 2004 08:31:05 -0700


Well, there isn't an ItemsAdded event on the listbox, but you could build
one if you wanted.

This is just a thought, but does adding an item trigger a resize? If so,
then you could add the logic to select the last item at the resize event.

-James

"GG" wrote:

> I know I can scroll to the last item in the listbox by calling
> SetSelected all the time
> What I need is when I add items through the Items.Add or Items.AddRange
> to be called automatically and go the the bottom.
> Anybody knows how to be implemented?
>
> Thanks
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
>