RE: How to scroll at the last item in the listbox through an event
From: James Divine (JamesDivine_at_discussions.microsoft.com)
Date: 10/08/04
- Next message: Gas: "Character representation"
- Previous message: Nicholas Paldino [.NET/C# MVP]: "Re: Strange question"
- In reply to: GG: "How to scroll at the last item in the listbox through an event"
- Messages sorted by: [ date ] [ thread ]
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!
>
- Next message: Gas: "Character representation"
- Previous message: Nicholas Paldino [.NET/C# MVP]: "Re: Strange question"
- In reply to: GG: "How to scroll at the last item in the listbox through an event"
- Messages sorted by: [ date ] [ thread ]