By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,101 Members | 1,387 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,101 IT Pros & Developers. It's quick & easy.

Deleting Multiple List box items that are linked to a database

P: 5
Basically, I have a listbox that is holding some information stored in a database. I want to remove the items but I'm not quit sure how. I've gotten the impression that I need to store the selected items into an array. I tried using some code that someone had posted in a previous post to see if it would work but apparently VB 2005 doesn't support the ListItem type.

So I was wondering if anyone can suggest what I should try doing. I just started learning VB so I'm a very simple coder. Thanks in advance.
Mar 22 '07 #1
Share this Question
Share on Google+
2 Replies


vijaydiwakar
100+
P: 579
Basically, I have a listbox that is holding some information stored in a database. I want to remove the items but I'm not quit sure how. I've gotten the impression that I need to store the selected items into an array. I tried using some code that someone had posted in a previous post to see if it would work but apparently VB 2005 doesn't support the ListItem type.

So I was wondering if anyone can suggest what I should try doing. I just started learning VB so I'm a very simple coder. Thanks in advance.
see if ur using .net then there is property of combobox that is RemoveItem
use it
its in vb and for .net use item.remove
try it
Good Luck
Mar 22 '07 #2

P: 5
see if ur using .net then there is property of combobox that is RemoveItem
use it
its in vb and for .net use item.remove
try it
Good Luck
Sorry, guess I didn't word my question well. I know of Items.Remove but my problem is how to recognize which row is the one I want to delete. Will the Items.Remove also remove the row from the database?
Mar 22 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.