473,503 Members | 2,148 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Picklist code sample

I'm creating Winforms application.

User enters first characters of customer name to Combobox in DataGridView or
in form.
I need to present list of matcing customer names and allow user to select
one customer.

This can be done in several ways:

1. Fill AutoComplete Custom source, and allow user to select from this.
2. Fill combobox Datasource, open combobox dropdown menu so user can select
from it.
3. Display form containing ListBox or Grid with customer names.

Which is the best way ?
Where to find such code sample which does not use p/invoke calls ?

Andrus.
Jan 27 '08 #1
1 2613
Why not use a ComboBox with autocomplete capabilities AND a dropdown menu?

There's a great example of this in Brian Noyes' Data Binding book.

RobinS.
-------------------------------
"Andrus" <ko********@hot.eewrote in message
news:Ov**************@TK2MSFTNGP06.phx.gbl...
I'm creating Winforms application.

User enters first characters of customer name to Combobox in DataGridView
or in form.
I need to present list of matcing customer names and allow user to select
one customer.

This can be done in several ways:

1. Fill AutoComplete Custom source, and allow user to select from this.
2. Fill combobox Datasource, open combobox dropdown menu so user can
select from it.
3. Display form containing ListBox or Grid with customer names.

Which is the best way ?
Where to find such code sample which does not use p/invoke calls ?

Andrus.
Jan 27 '08 #2

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

Similar topics

12
2300
by: Mike Brashars | last post by:
Hi all, I have been searching for a week and am unable to find and example to "Populate picklist from directory and return file name". I have a php script that reads a log file and plots a...
6
1970
by: (Pete Cresswell) | last post by:
I've got a situation where the user is expanding nodes in a TreeView and below a certain level, the child nodes become too numerous for them to deal with easily on a straight-up sequential list. ...
2
3345
by: Paul Owen | last post by:
Hmm, nobody seems to want to answer any of my questions, but here goes again! I have a Detailview control that is bound to a data source. Within the Detailview control I have a number of...
2
2759
by: Fred Flintstone | last post by:
I'm creating a multi-column dropdown since there isn't one. My idea is to override an Infragistics Combo and add the dropdown as a grid object. So I create a basic override of the control. The...
2
2982
by: mirandacascade | last post by:
Situation is this: 1) must write application that does the following: a) creates an xml document, the contents of which, is a request transaction b) send xml document to destination; I am...
16
21692
by: gumby | last post by:
I'm having trouble getting HADR to work with the sample databases on two HS20 xSeries blades, Red Hat ES4 up3, DB2 8.2.4, getting the following error. SQL1768N Unable to start HADR. Reason code...
0
1742
by: Hennie Coertze | last post by:
Good day, My knowledge of XML is next to none and I only have one XSL code to use. I also assume I may be using incorrect jargon and hope you will understand what I need. I have an XSL style...
0
2585
by: Andrus | last post by:
SWF ComboBox dropdown menu first item selection must open picklist. For this I use the following code: protected override void OnSelectedIndexChanged(System.EventArgs e) { if (SelectedIndex != 0...
4
2195
by: Andrus | last post by:
I need select from list containing product code and name but show only code in combo textbox. Tried code below but dropdown list shows only code. How to display code AND name in selection list ?...
0
7093
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...
0
7287
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,...
0
7353
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...
1
7011
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...
0
3180
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...
0
3170
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
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 ...
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
401
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...

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.