Picklist code sample

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrus

    #1

    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.


  • RobinS

    #2
    Re: Picklist code sample

    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" <kobruleht2@hot .eewrote in message
    news:OvTDnvHYIH A.5472@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.
    >

    Comment

    Working...