Click Button on DropDownListControl

How can I programmatically click the button on a DropDownList control using VB.Net 2.0.  I want the user to see the items in the list as they are added from another control.
jcnwsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

manojkumarpsCommented:
Hello jcnws,
         For that you have to explicitely fire the event for he selectedindexchanged.

regards,
Manoj
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
iboutchkineCommented:
Me.ComboBox1.DroppedDown = True  ' drop it
 
Me.ComboBox1.DroppedDown = False  ' close it
0
jcnwsAuthor Commented:
Hello Manoj.

I appreciate your help.  I think I didn't give you quite enough information to solve my problem.  Changing the selected index brings only the currently selected item into view.

I am trying to cause the DropDownList control to drop down when a new item is added to the list so the user can see the entire list.  This would be the same effect as clicking the button on the control.

Thanks.

jcnws

0
jcnwsAuthor Commented:
Hello iboutchkine.

Thanks for your suggestion.  I am using a DropDownList control rather than a ComboBox control and it doesn't have a DroppedDown property.

Thanks.
jcnws
0
manojkumarpsCommented:
Hello jcnws,

      The answer is already there. There are no major differences in a combobox and a dropdownlist control. I would suggest you to use the combobox xontrol as it solves your problem clearly.

         Just specify combobox1.droppeddown = true

regards,
Manoj
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.