473,320 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Customized Listbox required

I just want to create a listbox . In which on select of one Item few items will display in a box having a tree like structure.Can anyone help me out?

Or Can you help me out in making a listbox where it will show 5 items at a time and a vertical scrollbar, but the above box will be there. I mean if I am giving size attribute 5, it will show 5 items with scrollbar, but the above selectbox also I want.

Regards,
Prasad
Jun 27 '08 #1

✓ answered by hsriat

So atleast can u guide me for the key press events..
See this example.

6 1302
hsriat
1,654 Expert 1GB
I can't guide you the whole, but can show you a rough procedure.

Create a div with position:absolute; display:none, some specific height and width. Onclick of the select button (which ever should show the dropdown), turn style.display = ''.
Inside the div, provide other divs (one div for each option). Leaving the first five option divs, make all the other option divs as display:none.
After all the option divs, provide buttons (or hyperlinks) which'd say "show previous options" "show next options" or what ever is relevant. Onclick of those buttons, toggle the display of the options divs, to show next 5 (or previous 5) option divs.
And most important, you need to manipulate the key press event in a way so that you can select an option with the movement keys.
Jun 27 '08 #2
I had tried with that but one problem is that I cant move in the div with tabs or down arrows...
Jun 27 '08 #3
So atleast can u guide me for the key press events..
Jun 27 '08 #4
hsriat
1,654 Expert 1GB
I had tried with that but one problem is that I cant move in the div with tabs or down arrows...
Did you utilize the onkeypress event?
Jun 27 '08 #5
hsriat
1,654 Expert 1GB
So atleast can u guide me for the key press events..
See this example.
Jun 27 '08 #6
Thanks..It worked for me.
Jun 30 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Michael | last post by:
I am attempting to write a database for non-profit that I am working with. I have some limited (academic) experience with Access. I'm having some trouble with a listbox on one of my forms. Access...
1
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...
1
by: Daniel | last post by:
hi, I had an asp:listbox, and everytime i click item inside, the bar automatically go to the top, is there any way to keep the scroll position? I turn on the smartNavigation, it still doesn't...
3
by: Ali Chambers | last post by:
Hi, I have created a listbox called "dtlist1" on my VB.NET form. I call a procedure as follows: Private Sub openfile(flname As String) dtlist1.Items.Clear() etc..
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.