drop down list reset? vb2005

drop down list reset? vb2005

Page 1 of 1

2 Replies - 8264 Views - Last Post: 11 March 2009 - 08:13 PM Rate Topic: -----

#1 Fonz01  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 19
  • Joined: 06-March 09

drop down list reset? vb2005

Post icon  Posted 11 March 2009 - 07:52 PM

hi

Im having problems with my dropdownlist, originally a drop down as accessed from properties

the code to clear the box was combobox = ""

however this will not work with dropdownlist

ive tried combobox.items.clear()

but this just seems to clear all things from the box

I am wanting to just reset the box, when a user hits the reset button

can you help pls

thanks
Fonz

Is This A Good Question/Topic? 0
  • +

#3 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2262
  • View blog
  • Posts: 9,462
  • Joined: 29-May 08

Re: drop down list reset? vb2005

Posted 11 March 2009 - 08:03 PM

Try setting the selectedindex to -1

This post has been edited by AdamSpeight2008: 11 March 2009 - 08:04 PM

Was This Post Helpful? 1

#4 Fonz01  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 19
  • Joined: 06-March 09

Re: drop down list reset? vb2005

Posted 11 March 2009 - 08:13 PM

View PostAdamSpeight2008, on 11 Mar, 2009 - 07:03 PM, said:

Try setting the selectedindex to -1


U are a Star!!

Thanks for your help :^:

Fonz
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1