?
Solved

How to set drop-down arrow property for VB ListBox

Posted on 2008-11-19
9
Medium Priority
?
388 Views
Last Modified: 2012-05-05
Greetings,

As seen in the picture below I have two ListBox examples.  The top picture is a VB ListBox, the bottom one is in C#

I've messed around with the VB properties but I can't get that arrow to show.  How is this done?

I've also attempted to set the properties via the code:

Me.ListBox1.AllowDrop = True
Me.ListBox1.SelectionMode = SelectionMode.One

Any ideas?
Thanks!
drop-down-option-for-listbox.JPG
0
Comment
Question by:John500
  • 7
  • 2
9 Comments
 
LVL 21

Expert Comment

by:silemone
ID: 22996832
make sure under properties, locked doesn't equal true...
0
 
LVL 21

Expert Comment

by:silemone
ID: 22996847
oops...i was talking about resizing...i see the arrow which you are referring to now...it's not there?
0
 
LVL 21

Expert Comment

by:silemone
ID: 22996863
but make sure Locked = false...for either resizing or for binding and it should return...
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:John500
ID: 22997594
>> and it should return

Problem is I never had it.  The example I'm looking for is seen in the bottom picture but the top picture of my first post is the VB ListBox

Under properties, there is nothing for resizing.  The entire Form is set to one size by virtue that MaximumSize is set to false.  

There's nothing for bindings either.  The 'Unbound' property is part of the C# ASPX ListBox in the picture.....

Any other ideas?
0
 
LVL 21

Expert Comment

by:silemone
ID: 22997691
oh.. you want the scroll triangle or the triangle that lets you format/add items?  two different triangles there...
0
 
LVL 21

Expert Comment

by:silemone
ID: 22997719
Those appear to be two different controls...one is a dropdownlist and the other is a listbox...
0
 
LVL 21

Expert Comment

by:silemone
ID: 22997764
dropdownlistbox = combo box in winforms...

0
 
LVL 21

Accepted Solution

by:
silemone earned 2000 total points
ID: 22997795
1)  so it appears one control is a listbox (vb) and the other is a comboBox(c#) as one has the dropdown scroll that is always with the combo Box...
2)  the little triangle should show allow you to add items or bind data for both controls...
3)  the resizing issue:  may be locked in code....listbox.Locked = true...
0
 

Author Comment

by:John500
ID: 22998930
I just decided to stick with the double arrows in the ListBox.  Thanks

How about this question:

http://www.experts-exchange.com/Programming/Languages/.NET/Visual_Basic.NET/Q_23919663.html
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month14 days, 23 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question