Home Forums WinForms controls Other WinForms controls winComboBox e.cancel=true question

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #18547 |

    Hi

    when the e.cancel=true is called, the winComboBox geep the focus, old value is not recovered, and can’t do anything else. Any idea?

        Private Sub cboStatut_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles cboStatut.Validating
            If Not canUpdate Then
                    e.Cancel = True
            End If
        End Sub

     Daniel

    Imported from legacy forums. Posted by Daniel (had 2199 views)

    User (Old forums)
    Member
    Post count: 23064

    With the ComboBox, you will need to provide your own reverting mechanism, so the form does not freeze, and the user can revert back the previous value.  These mechanism are automatically available on the cell when using the grid, but not on the ComboBox when using it as a standalone control.

    Imported from legacy forums. Posted by André (had 2990 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.