473,657 Members | 2,478 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 2616
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******** ******@TK2MSFTN GP06.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
2321
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 graph. Right now, the log name is hard coded. The logs are archived each day in the form of say ddmmyy.log and I would like to put a drop down list in the script that would allow my script to run off the "log" picked or default to the current "hard...
6
1978
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. What I'd like to do is populate a subform next to the tree view with the child items presented in a denser format. One essential feature of that presentation would be that individual items have to be clickable - i.e. the user doubleclicks on an...
2
3354
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 dropdownlist controls that I want to list available options but will be bound to the Detailview control. I can achieve all this and seem to select the correct item from the datasource. However, when I try to update, the bound dropdownlist value seems to...
2
2775
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 first thing I want the control to do is kill the default button and add a new one. So in the initialization (New) area of the control I add the code to do that: Me.DropDownButtonDisplayStyle = Infragistics.Win.ButtonDisplayStyle.Never Dim...
2
3000
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 assuming that a process at destination side processes the request and sends back a response c) the application I'm writing must receive response and then examine contents of response 2) hope to write client application in python 3) was provided VB code...
16
21762
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 = "7" - The primary database failed to establish a connection to its standby database within the HADR timeout interval. What things should I check besides the remote host and remote service parameters on the standby database, which seem to be...
0
1753
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 sheet to convert the XML flat file. I need to change the style sheet so it groups certain data together under one heading. I need to be able to do this as the system I upload the file to do not accept the information as presented and continuously...
0
2589
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 || DropDownStyle != ComboBoxStyle.DropDown) { base.OnSelectedIndexChanged(e); return; } OpenPickList(); }
4
2200
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 ? Andrus. using System.Collections.Generic;
0
8420
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
8324
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
8842
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...
0
8740
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
5642
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
4173
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
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
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
1970
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.