473,545 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

listbox drop style

GS
in visual studio 2005 express VB I found mention of drop style for listbox
but so far my searches came up empty as to how and what they are.

I was to set height and I figure I can probably do something with setting
height during the focus events to simulate drop down list

However if there are drop down list style or dropdown list then it would be
better for to use them.
Sep 29 '06 #1
4 1569
GS,

Perhaps you are thinking of the combobox with its DropDownStyle property,
which can be set to DropDownList?

Kerry Moorman
"GS" wrote:
in visual studio 2005 express VB I found mention of drop style for listbox
but so far my searches came up empty as to how and what they are.

I was to set height and I figure I can probably do something with setting
height during the focus events to simulate drop down list

However if there are drop down list style or dropdown list then it would be
better for to use them.
Sep 29 '06 #2
gs
thank you.

combobox would have been ok except I don't' want people to enter arbitrary
text
I tried using droplistbox with height adjusted by focus events. Functionally
OK but visually is less than desirable. The display text is not the
selected item.
"Kerry Moorman" <Ke**********@d iscussions.micr osoft.comwrote in message
news:FD******** *************** ***********@mic rosoft.com...
GS,

Perhaps you are thinking of the combobox with its DropDownStyle property,
which can be set to DropDownList?

Kerry Moorman
"GS" wrote:
>in visual studio 2005 express VB I found mention of drop style for
listbox
but so far my searches came up empty as to how and what they are.

I was to set height and I figure I can probably do something with setting
height during the focus events to simulate drop down list

However if there are drop down list style or dropdown list then it would
be
better for to use them.

Sep 29 '06 #3
On 29/09/2006 in message <#J************ **@TK2MSFTNGP05 .phx.gblgs wrote:
>combobox would have been ok except I don't' want people to enter arbitrary
text
The Combo Box has 3 different styles, one of them doesn't allow entry of
text, it just allows picking from existing items.

--
Jeff Gaines
Sep 30 '06 #4
GS
thank you
So I will use DropDownList and just populate the items for the cobobox, use
the selectedIndex to identify what is selected

This will save me the hassle of figuring to scroll the listbox

"Jeff Gaines" <wh*********@ne wsgroups.nospam wrote in message
news:xn******** ********@msnews .microsoft.com. ..
On 29/09/2006 in message <#J************ **@TK2MSFTNGP05 .phx.gblgs wrote:
combobox would have been ok except I don't' want people to enter
arbitrary
text

The Combo Box has 3 different styles, one of them doesn't allow entry of
text, it just allows picking from existing items.

--
Jeff Gaines

Oct 1 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
8483
by: John Guarnieri | last post by:
Hi All, I need some code to drag items in a list box either up or down along with not just the text but with the itemdata too. Can anyone hook me up? TIA John
3
4288
by: Reb | last post by:
Hi, I am using drop down menu in my pages. In one of my page,there is a listbox control below the menu. This listbox control is hiding the drop down menu items. How can i make the drop down menu not to be hidden by the listbox control? I tried to increase the z-index for the menu control. But it did not help.
1
8358
by: Edward | last post by:
I am having a terrible time getting anything useful out of a listbox on my web form. I am populating it with the results from Postcode lookup software, and it is showing the results fine. What I want to do is to allow the user to click on the row that corresponds to the correct address, and have the code behind populate the form's...
2
2250
by: Rosanne | last post by:
I have a menu written in javascript. I include that menu on an asp page. The aspx page contains both a listbox and a datagrid. There i one drop down menu that overlaps the place where the listbox is. Whe the user hovers over the drop down menu, the listbox hides the botto options on the menu. However, the menu also overlaps the place wher...
8
2343
by: Steve Schroeder | last post by:
For some reason I cannot get the OnSelectedIndexChanged event to fire for a listbox I have on a page. I'm able to populate the listbox with data from a stored procedure, but cannot trigger the event. I do have EnableViewState = True for the listbox. I'm imagining (wanting) to populate the listbox named: lstNames by using the DataValueField...
3
8162
by: James Radke | last post by:
Hello, I was curious, is it possible to create drag and drop interface from listbox to listbox on a webform application (i.e. vb.net)? Basically the application would need to load multiple listboxes with values from a database, allow the user to drag and drop from a listbox to a different listbox and would 'move' the item and update the...
3
2898
by: Dean Slindee | last post by:
In a checked listbox, I am allowing drag/drop of the items within (resequencing). Problem is, when dropping a checked item, the checked state always reverts to unchecked (unwanted). Anyone know how to set the checked state of a checked listbox item in code. Here is the drag/drop code, which works fine, except for unchecking the dropped...
1
1403
by: Zyrthofar Blackcloak | last post by:
Hi everyone I have a listbox with more items in it than is printed on screen. I need the index number of the first shown item to move another listbox to the same position... Explained differently, the two listboxes have the same number of items, and are linked and show the same portion to the screen. I have been having problems with a...
2
3915
by: cshaw | last post by:
Hello Everyone, I am having problems with a listbox control. I have a page with a couple of labels and drop-down lists at the top, and then below there is a table with two columns, the first column contains a listbox and the second column contains some buttons. I am trying to display it such that if the listbox is empty it will be at least...
0
7923
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7437
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7773
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5984
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5343
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4960
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1025
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.