Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Listboxes


Reply
 
Thread Tools Display Modes
  #1  
Old 03-02-2004, 05:04 AM
VBDiablo101 VBDiablo101 is offline
Freshman
 
Join Date: Jun 2003
Location: UK - Cambridge
Posts: 30
Default Listboxes


well firstly it is a long time since i posted on this forum but i have a slight problem. I am making a multiplayer and single player tic tac toe which i have done but the problem is that when i add data into the listbox it does not update to the last item added.

so my question is there a way of updating the listbox when a new item has been added. I used the listbox to show who is talking and also show who won the game, but it does not update after a new item has been added.

I would appreciate if you could help me on this matter.
Reply With Quote
  #2  
Old 03-02-2004, 05:06 AM
shapeshifter's Avatar
shapeshifter shapeshifter is offline
Junior Contributor
 
Join Date: Jan 2004
Location: Finland
Posts: 216
Default

Code:
list1.Refresh
__________________
"It is ridiculous to claim that video games influence children. For instance, if PacMan affected kids born in the 80s, we should by now have a bunch of teenagers who run around in darkened rooms eating pills while listening to monotonous electronic music..."
Reply With Quote
  #3  
Old 03-02-2004, 06:06 AM
VBDiablo101 VBDiablo101 is offline
Freshman
 
Join Date: Jun 2003
Location: UK - Cambridge
Posts: 30
Default

Thanks for the reply but i already found a way round it by looking in some books

i used this

Code:
dim intcount as integer intcount = lstChat.ListCount lstChat.ListIndex = intcount - 1

but the problem is that everytime i seen additem i have added the code above i should really write a function what handles it and all i do is call that function when an item is added.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
highlight values in diff listboxes at same listindex Wildbeliefs Interface and Graphics 6 12-17-2002 12:53 AM
Dynamic ListBoxes subbulakshmi General 2 03-25-2002 09:42 PM
Listboxes... Kieto Database and Reporting 2 08-27-2001 10:57 PM
ListBoxes. LoSt_sOuL General 4 04-12-2001 05:45 PM
Compare ListBoxes Mota331 General 5 02-06-2001 02:36 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->