Autor Beitrag
GeringeMenge
Hält's aus hier
Beiträge: 11



BeitragVerfasst: Sa 20.05.06 18:24 
2. Ich würde gerne das er auf Tastatur eingaben reagiert, wie die calc.exe unter windows.

Kann mir das jemand sagen?


Moderiert von user profile iconChristian S.: Topic aus C# - Die Sprache verschoben am Sa 20.05.2006 um 18:25
Kha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3803
Erhaltene Danke: 176

Arch Linux
Python, C, C++ (vim)
BeitragVerfasst: Sa 20.05.06 18:48 
Dass du auf Tastaturereignisse per KeyDown/Up/Press-Event deiner Form reagieren kannst, weißt du wahrscheinlich schon. Damit diese auch ausgelöst werden, wenn ein Control auf der Form den Fokus hat, musst du die Form.KeyPreview-Property aktivieren.
Zitat:
Gets or sets a value indicating whether the form will receive key events before the event is passed to the control that has focus.
When this property is set to true, the form will receive all KeyPress, KeyDown, and KeyUp events.