Shaitan00 Posted July 23, 2007 Posted July 23, 2007 This is going to be fun to explain... I am using the LISTBOX (lbOutput) as a way to output information to the user (via the lbOutput.items.add(sInfo);) - when the listbox itself gets full the scrollbars appear except that the focus remains at the top of the listbox. As lines keep getting added the user has to scroll DOWN to see the information. I need the opposite, I need to ensure the Listbox will always show the LAST ITEM ADDED at all times, if the user wants to see what happened before he can easily scroll up using the scroll bars. Kind of like how the command prompt works. I went through the ListBox properties and was unable to find anything to that effect - any ideas? Any help would be greatly appreciated... Thanks, Quote
Leaders snarfblam Posted July 23, 2007 Leaders Posted July 23, 2007 Why not just select the last item each time you add an item... listBox1.SelectedIndex = listBox1.Items.Count - 1; Quote [sIGPIC]e[/sIGPIC]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.