Click here to Skip to main content
15,923,120 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralWeird OnKeyDown bug... Pin
Jon Rista3-Dec-02 11:23
Jon Rista3-Dec-02 11:23 
I have a strange problem with a custom control (derives from System.Windows.Control). I've added code to the protected OnKeyDown and OnKeyUp methods of my control to handle up/down/left/right keypresses.

The keys work great most of the time. The one case where they do not work is when my control is used with the System.Windows.Forms.ListBox control. The listbox kills the focus on my control, preventing any keypress events from fireing. Sometimes the listbox takes the focus itself, sometimes not.

Any ideas on what the deal is? Confused | :confused: Thanks.
GeneralRe: Weird OnKeyDown bug... Pin
Jeff J4-Dec-02 18:32
Jeff J4-Dec-02 18:32 
GeneralRe: Weird OnKeyDown bug... Pin
Jon Rista5-Dec-02 8:46
Jon Rista5-Dec-02 8:46 
GeneralCLASS DIAGRAM Pin
Anonymous3-Dec-02 0:58
Anonymous3-Dec-02 0:58 
GeneralRe: CLASS DIAGRAM Pin
David Stone3-Dec-02 19:05
sitebuilderDavid Stone3-Dec-02 19:05 
GeneralGraphics transform Pin
Stan Shannon2-Dec-02 7:26
Stan Shannon2-Dec-02 7:26 
Generalclass doesn't support automation Pin
Molina29-Nov-02 7:24
Molina29-Nov-02 7:24 
GeneralThrow exception in a constructor... Pin
Ray Cassick27-Nov-02 17:52
Ray Cassick27-Nov-02 17:52 
GeneralRe: Throw exception in a constructor... Pin
Jeff J2-Dec-02 8:43
Jeff J2-Dec-02 8:43 
GeneralRe: Throw exception in a constructor... Pin
Burt Harris8-Dec-02 12:38
Burt Harris8-Dec-02 12:38 
GeneralMethods in WMI custom class Pin
QEugene_rus24-Nov-02 17:17
sussQEugene_rus24-Nov-02 17:17 
Generalhelp: executing a transform on a schema Pin
LongRange.Shooter22-Nov-02 18:49
LongRange.Shooter22-Nov-02 18:49 
GeneralImpersonate remote caller Pin
solidstore21-Nov-02 23:15
solidstore21-Nov-02 23:15 
QuestionHow to make DrawString draws normally without World Transformation (GDI+)'s effect? Pin
Ruxo Zheng21-Nov-02 16:36
Ruxo Zheng21-Nov-02 16:36 
GeneralExposing C# COM object from Windows Service Pin
solidstore21-Nov-02 3:35
solidstore21-Nov-02 3:35 
QuestionWindowsIdentity is unusable in Win9x/ME? Pin
Ruxo Zheng20-Nov-02 23:17
Ruxo Zheng20-Nov-02 23:17 
AnswerRe: WindowsIdentity is unusable in Win9x/ME? Pin
David Stone3-Dec-02 19:09
sitebuilderDavid Stone3-Dec-02 19:09 
GeneralRe: WindowsIdentity is unusable in Win9x/ME? Pin
Ruxo Zheng3-Dec-02 20:05
Ruxo Zheng3-Dec-02 20:05 
GeneralWants to use Point and Rectangle :(( Pin
Paul Selormey19-Nov-02 15:23
Paul Selormey19-Nov-02 15:23 
GeneralRe: Wants to use Point and Rectangle :(( Pin
ian mariano20-Nov-02 3:09
ian mariano20-Nov-02 3:09 
GeneralRegular Expression Pin
Pete Bassett19-Nov-02 6:48
Pete Bassett19-Nov-02 6:48 
GeneralRe: Regular Expression Pin
Pete Bassett19-Nov-02 22:24
Pete Bassett19-Nov-02 22:24 
GeneralBuilding Project Using Microsoft .NET Framework SDK Pin
yccheok16-Nov-02 17:00
yccheok16-Nov-02 17:00 
GeneralRe: Building Project Using Microsoft .NET Framework SDK Pin
James T. Johnson16-Nov-02 17:45
James T. Johnson16-Nov-02 17:45 
GeneralRe: Building Project Using Microsoft .NET Framework SDK Pin
Martin Haesemeyer16-Nov-02 22:03
Martin Haesemeyer16-Nov-02 22:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.