Lock/Stop/Restrict entry when combo box is bound.

From: flat_ross (flat_ross_at_yahoo.com)
Date: 03/23/05

  • Next message: Darryn Ross: "Re: Datagrids - Rows???"
    Date: 23 Mar 2005 09:23:31 -0800
    
    

    I have been unable to google the right keywords to this hopefully easy
    answer.

    I bind a combobox:
            With cboOperator
                Dim operator As OperatorDataTable = _company.Operator
                .DataSource = operator
                .DisplayMember = operator.Name.ColumnName
                .ValueMember = operator.OperatorId.ColumnName
            End With

    When I run the app, unfortunately, I can still type data into the
    combobox. I only want users to be able to select from the populated
    list.

    Is my only solution to filter out keys on keypress or is there
    something much simpler I have missed?

    Thanks,
    Ross


  • Next message: Darryn Ross: "Re: Datagrids - Rows???"

    Relevant Pages

    • Re: UI Question - How would you do this?
      ... : Jeff Godfrey wrote: ... Once the app gets a single, specific "part name" from the database, it will ... Using a combobox, ... The app, finding multiple matches doesn't generate an error dialog, ...
      (comp.lang.tcl)
    • Re: Mouse not effect on ScrollBar of ComboBox
      ... This is already handled for a dialog-based app, and in any case would not be the problem. ... the styles for the ComboBox are not shown. ... Style of m_pChildDlg = CHILD (i set it in Design mode) ... 'Visible' property true. ...
      (microsoft.public.vc.mfc)
    • Clear Combobox Items
      ... Below is my code for a combobox. ... box is the application selection and the other retrieves data from the ... want to make a selection in the app combobox, ... bind the datasource and fill the dataadapter. ...
      (microsoft.public.dotnet.general)
    • Combobox datasource assignment to dataset suddenly stopped
      ... I have an existing app that fills a combobox with a list of names from ... I then had to go in to my code for the app and run it in debug mode. ... I'm wondering if this is related to the Microsoft updates I did to my ... development machine. ...
      (microsoft.public.dotnet.framework.windowsforms.databinding)
    • Re: Error Trapping Question
      ... > the combobox (cboFluid = strFluidName) that does not exists. ... > which makes old files for this app not compatible. ... and that's why you want to "filter the file". ...
      (microsoft.public.vb.general.discussion)