Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maskedtextbox blues
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01487813
Message ID:
01487826
Vues:
48
Put the code directly in the KeyPress event handler rather than overriding the OnKeyPress method
(Just double click on the event in the properties window to create the stub)

>Why, o why does this cause eratic behaviour in my (bound) maskedtextbox(es)?
>
>Is there a fatwa against maskedtexboxes that I should know of?
>
>
>    Protected Overrides Sub OnKeyPress(ByVal e As KeyPressEventArgs)
>        ' http://www.syncfusion.com/FAQ/windowsforms/faq_c94c.aspx#q1121q
>        If e.KeyChar = Chr(13) Then 'CChar(13)
>            e.Handled = True
>        Else
>            MyBase.OnKeyPress(e)
>        End If
>    End Sub
>
>
>Thanks.
>
>Marc
>
>PS : I need this so to disable the beep each time the user completes a field with the enter key.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform