Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 22nd, 2005, 2:28 PM   #11
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
If the contents of the two listboxes are identical, you could make them go "in sync" by putting List2.ListIndex = List1.ListIndex in List1's click handler for example. Then it's not too hard to remove items from both lists.

As for chat programs, there are plenty of sample projects and tutorials out there to get you started.
Rory is offline   Reply With Quote
Old Sep 22nd, 2005, 4:07 PM   #12
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 298
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
Yes but its different words and stuff i.e.< list1=hello list2=world how i g\hihiglight both to delete
bigguy is offline   Reply With Quote
Old Sep 25th, 2005, 12:36 PM   #13
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
Quote:
Originally Posted by bigguy
Yes but its different words and stuff i.e.< list1=hello list2=world how i g\hihiglight both to delete
Well as long of the position of each pair in their lists is the same, that code would work. But if they're in different orders and are different and non-unique items... what are you trying to do anyway?
Rory is offline   Reply With Quote
Old Sep 25th, 2005, 3:35 PM   #14
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 298
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
I need 2 list boxes one for admin name and the other for admin password. Then I have a command button captioned Delete Admin. I want it to when i Highlight some thing in the first list box it will also highlight the word directly across from it in Listbox2, than when i click Remove Admin it will delete what i have highlighted instead of the first words in the list box and they do by default. any help is appreciated. Thank You
bigguy is offline   Reply With Quote
Old Sep 25th, 2005, 4:30 PM   #15
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
Well to keep them in sync,
List2.ListIndex = List1.ListIndex on the onclick / selection change event of List1
List1.ListIndex = List2.ListIndex on the onclick / selection change event of List2

then on remove admin button click:
List2.Remove(List1.ListIndex)
List1.Remove(List1.ListIndex)
Rory is offline   Reply With Quote
Old Sep 25th, 2005, 4:31 PM   #16
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 298
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
Thank you rory. You have been a greta help.
bigguy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

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 On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:41 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC