Freigeben über


NumericUpDown.OnTextBoxKeyPress-Methode

Diese Methode unterstützt die .NET Framework-Infrastruktur und ist nicht für die direkte Verwendung in Code bestimmt.

Löst das KeyPress-Ereignis aus.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

Syntax

'Declaration
Protected Overrides Sub OnTextBoxKeyPress ( _
    source As Object, _
    e As KeyPressEventArgs _
)
'Usage
Dim source As Object
Dim e As KeyPressEventArgs

Me.OnTextBoxKeyPress(source, e)
protected override void OnTextBoxKeyPress (
    Object source,
    KeyPressEventArgs e
)
protected:
virtual void OnTextBoxKeyPress (
    Object^ source, 
    KeyPressEventArgs^ e
) override
protected void OnTextBoxKeyPress (
    Object source, 
    KeyPressEventArgs e
)
protected override function OnTextBoxKeyPress (
    source : Object, 
    e : KeyPressEventArgs
)

Parameter

  • source
    Die Quelle des Ereignisses.

Hinweise

Das NumericUpDown-Steuerelement akzeptiert nur Ziffern, das Minuszeichen, den Dezimalpunkt und Tastatureingaben für die Bearbeitung wie das Drücken der RÜCKTASTE. Wenn die Hexadecimal-Eigenschaft auf true festgelegt ist, akzeptiert NumericUpDown auf hexadezimale Zeichen.

Plattformen

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

NumericUpDown-Klasse
NumericUpDown-Member
System.Windows.Forms-Namespace