Re: KeyDown, KeyPress, KeyUp Problem
- From: Michael Herms <Michael.Herms@xxxxxxxx>
- Date: Wed, 11 Oct 2006 16:29:15 +0200
Hi Matze,
hast du ein snipped, wie du das nun gelöst hast?
Wie kommst du denn nun an den Event dran, wenn du einen control-char dabei gedrückt hast?
Gruß
Micha
Matthias Heise wrote:
Hallo,.
ich beantworte mal selbst die Frage, damit andere auch was davon haben.
Das Problem war, daß KeyPress schon auch an das eigene Control gesendet wird, aber eben nur, wenn ein non-control Character gedrückt wurde. Drücke ich also z.B. STRL, so empfange ich den Event nicht.
Matthias
"Matthias Heise" wrote:
Hallo nochmals,
wenn ich an einem Control EventHandler auf KeyDown und KeyUp habe, bekomme ich nie selbst den KeyPress event. Gleiches gilt für MouseDown, MouseClick und MouseUp. Problem ist nun, daß ich aber dennoch den KeyPress Event brauche. Möglich ist es bisher nur über ein embedded Control, welches dann KeyPress automatisch ausgelöst bekommt. Problem hierbei ist, daß dieses Control visible sein muß.
Da ich in meinem Fall aber mit DirectX direct auf das erste Control rendere, kann und möchte ich kein embedded control haben und dennoch KeyPress Event abfangen.
Wie kann man das am besten angehen? Im Grunde geht es mir nur um den Char, welcher in den KeyPressEventArgs steht.
Danke
Matthias
- Follow-Ups:
- Re: KeyDown, KeyPress, KeyUp Problem
- From: Matthias Heise
- Re: KeyDown, KeyPress, KeyUp Problem
- Prev by Date: Re: [OT]ControlPaint.DrawBorder Problem
- Next by Date: Re: XML-C#2.0 Dokument erzeugen - wie am besten?
- Previous by thread: Form mit NotifyIcon
- Next by thread: Re: KeyDown, KeyPress, KeyUp Problem
- Index(es):
Relevant Pages
|