473,651 Members | 3,004 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

dropdown Listbox open

fat
I have a drop down combo box that displays a list of customers , and
the list is growing..
I would like to click the dropdown arrow and have a List box in a new
form open, then i can choose a customer and pass it back to the combo
box.

can anyone help me
thanks in advance
d

Sep 15 '06 #1
4 4717
In article <11************ **********@m73g 2000cwd.googleg roups.com>,
sy*********@syb r.com.au says...
I have a drop down combo box that displays a list of customers , and
the list is growing..
I would like to click the dropdown arrow and have a List box in a new
form open, then i can choose a customer and pass it back to the combo
box.

can anyone help me
thanks in advance
d

Why even use a combo box in the first place then? Simply have a text
box and a button next to it. Click the button and pop up the othere
form with the data in a list box. With appropriate error trapping have
the text box on the first box set to the value of the selected item in
the list box when the second form is closed.
Sep 15 '06 #2
fat
Hi first thanks for the answer
I think the button idea is clunky and i would need to instruct people
to press the button when you automaticlly choose the dropdown. So i can
work the code to open a form with a list in it, i am struggling with
the code to pass the selected item from the list form to the combo
box..

dd
Ima Loozer wrote:
In article <11************ **********@m73g 2000cwd.googleg roups.com>,
sy*********@syb r.com.au says...
I have a drop down combo box that displays a list of customers , and
the list is growing..
I would like to click the dropdown arrow and have a List box in a new
form open, then i can choose a customer and pass it back to the combo
box.

can anyone help me
thanks in advance
d
Why even use a combo box in the first place then? Simply have a text
box and a button next to it. Click the button and pop up the othere
form with the data in a list box. With appropriate error trapping have
the text box on the first box set to the value of the selected item in
the list box when the second form is closed.
Sep 15 '06 #3
first there is no control called a drop down. Theer is a combo box, a
list box, and a text box. If you are not using the list portion of a
combo box there is no need to even have it and thus the text box with a
button is the idea. I may be missing something but I failt o see what
difference it makes if they click an arrow button that part of an unused
combo box or click a button (that you could easily label with a down
arrow) to open the form with the list box.
Hell you could even have the list box on the same form as the text box
and just change the visible property hen the button is clicked.

You can have the second form open on the OnEnter even of the text box
but thats a real pain in the ass. you will find that it opens when you
dont want it to. Try opening the second form on double click event.

In article <11************ *********@p79g2 000cwp.googlegr oups.com>,
sy*********@syb r.com.au says...
Hi first thanks for the answer
I think the button idea is clunky and i would need to instruct people
to press the button when you automaticlly choose the dropdown. So i can
work the code to open a form with a list in it, i am struggling with
the code to pass the selected item from the list form to the combo
box..

dd
Ima Loozer wrote:
In article <11************ **********@m73g 2000cwd.googleg roups.com>,
sy*********@syb r.com.au says...
I have a drop down combo box that displays a list of customers , and
the list is growing..
I would like to click the dropdown arrow and have a List box in a new
form open, then i can choose a customer and pass it back to the combo
box.
>
can anyone help me
thanks in advance
d
>
>
Why even use a combo box in the first place then? Simply have a text
box and a button next to it. Click the button and pop up the othere
form with the data in a list box. With appropriate error trapping have
the text box on the first box set to the value of the selected item in
the list box when the second form is closed.

Sep 15 '06 #4
fat
Yeah ok
I am thinking that you may have something in adding the button with an
arrow next to the listbox
thanks for your help
dd
Ima Loozer wrote:
first there is no control called a drop down. Theer is a combo box, a
list box, and a text box. If you are not using the list portion of a
combo box there is no need to even have it and thus the text box with a
button is the idea. I may be missing something but I failt o see what
difference it makes if they click an arrow button that part of an unused
combo box or click a button (that you could easily label with a down
arrow) to open the form with the list box.
Hell you could even have the list box on the same form as the text box
and just change the visible property hen the button is clicked.

You can have the second form open on the OnEnter even of the text box
but thats a real pain in the ass. you will find that it opens when you
dont want it to. Try opening the second form on double click event.

In article <11************ *********@p79g2 000cwp.googlegr oups.com>,
sy*********@syb r.com.au says...
Hi first thanks for the answer
I think the button idea is clunky and i would need to instruct people
to press the button when you automaticlly choose the dropdown. So i can
work the code to open a form with a list in it, i am struggling with
the code to pass the selected item from the list form to the combo
box..

dd
Ima Loozer wrote:
In article <11************ **********@m73g 2000cwd.googleg roups.com>,
sy*********@syb r.com.au says...
I have a drop down combo box that displays a list of customers , and
the list is growing..
I would like to click the dropdown arrow and have a List box in a new
form open, then i can choose a customer and pass it back to the combo
box.

can anyone help me
thanks in advance
d


Why even use a combo box in the first place then? Simply have a text
box and a button next to it. Click the button and pop up the othere
form with the data in a list box. With appropriate error trapping have
the text box on the first box set to the value of the selected item in
the list box when the second form is closed.
Sep 15 '06 #5

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

Similar topics

10
5246
by: J P Singh | last post by:
Hi There We have dropdown on ASP page. The problem is we have about 900 items in the dropdown. Users scrolling through the list have become very frustrated in the past. Can someone suggest if there is another way of implement a dropdown where the datalist is as big as ours. I am looking for something like a listbox in VB where you can start typing
6
2705
by: A P | last post by:
Hi! I have seen some techniques like this on the web. Currently, I'm using Combo box which values came from database table. One disadvantage is when the combo box have lots of values, users are complaining since you cannot use keyboard to search the value that is needed. Hope you might help me. regards, Me
7
2943
by: DD | last post by:
Hi I want the user to be able to view all reports from a form either by way of a list box or dropdown or ?? any help please DD
1
2132
by: seansan | last post by:
Hi, I ahve an issue that I could tackle myself. sometimes a dropdown box is filled with only one element. How can I set this dropdown box to auto-select this one option? So in VB. If my listcount of a dropdown element is 1 how do I capture the value of this element and set the dropdown box to show/select this one element? (instead of showing empty)
3
3057
by: Lloyd Sheen | last post by:
I have a page that works fine. I am trying to optimize the page by overriding some of the Information that is being saved in the hidden VIEWSTATE. If I make the properties of the dropdown False for ViewState and True for AutoPostBack, it does reload the page but does not call the SelectedIndexChanged event. If I put the ViewState to True then it is called. Does this mean that I cannot get that event and deal with it in better code
4
4589
by: Paul | last post by:
I have a dropdown list box and a button on a web form, the autopost back is false for the dropdown list box and button. When the button is pushed the selection in the dropdownlist box is lost, just wondering what is wrong. Selected value is always 1 no matter what is selected in the dropdown list box. Private Sub btn_yes_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_yes.Click Dim s_origidval As String
1
25717
by: acord | last post by:
Hi, I am having problem to get a value of the selected item from a dropdown listbox. Here is the JS function; function getSelectedItem(objSelect) { alert("in getSelectedItem"); alert (objSelect.length); alert (objSelect.value);
3
4421
by: devNorway | last post by:
I have been struggling with a problem for days now, and searched for related problems and solutions but had no luck. I have two dropdown listboxes where the first is populated in page load and the second is populated based on the input in the first. The first dropdown is inside a "If Not Page.IsPostBackThey" if loop. Both have autopostback set to true. The problem is that when the user makes a choice in the first dropdown an event is...
1
1298
by: servernet1997 | last post by:
I have a gridview with 4 columns. Two of the columns are read-only and two are editable. The two editable columns are listboxes leveraging an ObjectDataSource. The first listbox is populated from a table of static information, the second listbox is more problematic. If the contents of the first listbox contains one specific value, I want to populate the second listbox with the results of QueryA when the row is edited. If the contents of...
0
8277
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
8803
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8465
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8581
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7298
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...
0
5612
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
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4285
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2701
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

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.