|
-
Jun 19th, 2004, 09:56 PM
#1
Thread Starter
Junior Member
ListBox Question
I've got a really nice listbox working, and I'm using it to enter answers from a T/F test. As I enter each answer, it becomes visible in the listbox. Once the items reach the bottom of the box though, the answers that I enter are no longer visible (they are below the bottom of the listbox). They are there, but you need to use the scroll bar to view them.
Is there any way that I can make it so that the most recently entered item is visible at the bottom of the Listbox?
Ian
-
Jun 19th, 2004, 10:26 PM
#2
VB Code:
ListBox1.SelectedIndex = ListBox1.Items.Count - 1
put this after to add a item to the list box
Tips:
- Google is your friend! Search before posting!
- Name your thread appropriately... "I Need Help" doesn't cut it!
- Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
- Allways Include the Name and Line of the Exception (if one is occuring!)
- If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)
If you think I was helpful, rate my post  IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous
-
Jun 19th, 2004, 10:27 PM
#3
Last edited by <ABX; Jun 20th, 2004 at 03:21 AM.
Tips:
- Google is your friend! Search before posting!
- Name your thread appropriately... "I Need Help" doesn't cut it!
- Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
- Allways Include the Name and Line of the Exception (if one is occuring!)
- If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)
If you think I was helpful, rate my post  IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous
-
Jun 20th, 2004, 07:50 AM
#4
PowerPoster
Originally posted by <ABX
EDIT: Damn Double Post
When you edit your double post you CAN delete it entirely using the two boxes at the top
Last edited by taxes; Jun 20th, 2004 at 07:56 AM.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
-
Jun 20th, 2004, 09:45 AM
#5
Thread Starter
Junior Member
It works!!!
Thanks! The code line worked like a charm - and what's more, it helped me learn a lot about this language.
Thanks again!
Ian
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
|