Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Remove Item In A Drop Down Box..


  • Please log in to reply
2 replies to this topic

#1 ph7ryan

ph7ryan

  • Members
  • 141 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Georgia, USA
  • Local time:08:26 AM

Posted 26 September 2008 - 09:10 AM

what would the code be....I want to delete the selected item....

I tried combo1.removeitem (0), but it jsut deleted the first once.....

BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:06:26 AM

Posted 26 September 2008 - 10:22 AM

combo1.removeitem (0)


Yes, that would remove the first item in the list, which would be at index zero.

The API for ComboBox tells you exactly what to do. Without knowing anything about the language that you were using, it took me less than 5 minutes to find the answer, including the time it took to write this post. :thumbsup:

#3 ph7ryan

ph7ryan
  • Topic Starter

  • Members
  • 141 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Georgia, USA
  • Local time:08:26 AM

Posted 28 September 2008 - 05:12 PM

combo1.removeitem (0)


Yes, that would remove the first item in the list, which would be at index zero.

The API for ComboBox tells you exactly what to do. Without knowing anything about the language that you were using, it took me less than 5 minutes to find the answer, including the time it took to write this post. :thumbsup:

ok, thanks....I never even knew that there was a API on it and even if i did, the high school computers are so secured, bin laden counldn't even access his email without being denied for seeing something.....thanks for your help




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users