473,801 Members | 2,389 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Expand drop down list

Hello Experts,

I have a drop down list web control in one of my page. Currently if I
want to expand the drop down list to show all items, I must click on the
down-arrow sign on the right hand side of the drop down list. The
question is what are the codes to make it expand to show all items
automatically when it is selected?
Thanks,

Benny

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
4 2956
Benny wrote:
Hello Experts,

I have a drop down list web control in one of my page. Currently if I
want to expand the drop down list to show all items, I must click on
the down-arrow sign on the right hand side of the drop down list. The
question is what are the codes to make it expand to show all items
automatically when it is selected?
Thanks,

Benny

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Hi Benny,

I have not tested this but...

What you could possibly do is use p/invoke to send a CB_SHOWDROPDOWN
message to the combobox.

Rgds Tim.
Nov 16 '05 #2
Tim Jarvis wrote:

Hi Benny,

I have not tested this but...

What you could possibly do is use p/invoke to send a CB_SHOWDROPDOWN
message to the combobox.

Rgds Tim.


Actually Benny, I have just realised that this is a web control you are
talking about, I have no idea if what I suggested will work (in fact I
suspect no)

Sorry.

Rgds Tim.
Nov 16 '05 #3
Benny wrote:
Hello Experts,

I have a drop down list web control in one of my page. Currently if I
want to expand the drop down list to show all items, I must click on
the down-arrow sign on the right hand side of the drop down list. The
question is what are the codes to make it expand to show all items
automatically when it is selected?
Thanks,

Benny

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Hi Benny,

I have not tested this but...

What you could possibly do is use p/invoke to send a CB_SHOWDROPDOWN
message to the combobox.

Rgds Tim.
Nov 16 '05 #4
Tim Jarvis wrote:

Hi Benny,

I have not tested this but...

What you could possibly do is use p/invoke to send a CB_SHOWDROPDOWN
message to the combobox.

Rgds Tim.


Actually Benny, I have just realised that this is a web control you are
talking about, I have no idea if what I suggested will work (in fact I
suspect no)

Sorry.

Rgds Tim.
Nov 16 '05 #5

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

Similar topics

1
22595
by: James Hurrell | last post by:
Hi, I'm using the following javascript function to expand and collapse portions of text in a web page (targeted at IE5.5 and above): function doExpand(paraNum,arrowNum) { if (paraNum.style.display=="none") { paraNum.style.display=""; arrowNum.src="collapse.gif"; }
0
1008
by: Murugavel | last post by:
Hi all, When we click the any DropDown list,the list of items appeared under the dropdown box.i want to expand the size of list showed by the dropdown without changing the DropDown Control size.can anyone tell me how to do it?. i would appericate all for the help. thanks.
2
384
by: Benny | last post by:
Hello Experts, I have a drop down list web control in one of my page. Currently if I want to expand the drop down list to show all items, I must click on the down-arrow sign on the right hand side of the drop down list. The question is what are the codes to make it expand to show all items automatically when it is selected? Thanks,
2
6898
by: Steve | last post by:
I have a combo box that I would like to expand or "drop down" programmatically. The Simple style won't work because I still need the control to contract or "roll up" after a selection is made, I just need to be able to expand it with code. I'm not coming up with anything.. has anyone done this? Do I need to fake a mouse click (yuck!)? Thanks for reading, Steve
3
6168
by: Don Wash | last post by:
Hi There! I have a Server-side Drop-down box in ASP.NET (VB) page. What do I do to widen the Drop down box's Pull-Down list's width? I'm not talking about the Drop-down box's width but the box that appear when user clicks the drop-down arrow button. Because items in the Drop down list are a little long, user can't see the full thing when they pull down the items from the drop down list.
2
12625
by: Yoshitha | last post by:
hi I have 2 drop down lists in my application.1st list ontains itmes like java,jsp,swings,vb.net etc.2nd list contains percentage i.e it conatains the items like 50,60,70,80,90,100. i will select any skill in 1st drop down list then i'll select % of this skill in the 2nd list box , based on the percentage i've selected in the 2nd list box it has to display 2 sets of drop down list boxes at run time one for selecting skill and
4
9300
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me if it works, and if it does not, tell me why it does not work. Thanks.
3
7361
by: penny111 | last post by:
Hi there, For my application, i need to have 3 drop down lists 1. drop down list of folder names 2. drop down list of documents in the folder selected 3. drop down list of instances of the document selected (my application uses the BusinessObjects Java Web Services SDK) The 2nd list is dependent on the 1st, while the 3rd list is dependent on the 2nd. In other words, this is what i want my application to do -select a folder from the...
4
14199
by: magmike | last post by:
I've got a control on my form that allows the user to select a record based on a form field (in this example, the drop down menu shows the company name, followed by the contact name but uses the contactid to change the data on the form). Most users, start typing the company name which will auto complete itself with the first entry with the letters typed so far. They can then click on the arrow to view the listings, select the one they want...
3
17259
by: Simon van Beek | last post by:
Dear reader, What can be wrong in my ComboBox, the property "Auto Expand" is set to Yes, but by typing in the ComboBox it doesn't expand. Is this because the source of the ComboBox is a query.
0
9697
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9555
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9100
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7589
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6827
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5616
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4156
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
2
3771
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2956
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.