Click here to Skip to main content
15,911,306 members
Home / Discussions / C#
   

C#

 
GeneralRe: Possible to return null from constructor? Pin
leppie14-Dec-02 6:43
leppie14-Dec-02 6:43 
GeneralRe: Possible to return null from constructor? Pin
Rob Graham14-Dec-02 7:38
Rob Graham14-Dec-02 7:38 
GeneralRe: Possible to return null from constructor? Pin
leppie14-Dec-02 8:20
leppie14-Dec-02 8:20 
GeneralRichEdit control, bitmaps and number of lines Pin
peter271314-Dec-02 2:25
peter271314-Dec-02 2:25 
GeneralInterop problem Pin
Christian Graus13-Dec-02 22:58
protectorChristian Graus13-Dec-02 22:58 
GeneralRe: Interop problem Pin
James T. Johnson14-Dec-02 0:25
James T. Johnson14-Dec-02 0:25 
GeneralRe: Interop problem Pin
Christian Graus14-Dec-02 9:48
protectorChristian Graus14-Dec-02 9:48 
GeneralEnter key pressed in a VS.NET addin control Pin
Nathan Tran13-Dec-02 20:18
Nathan Tran13-Dec-02 20:18 
Hi,

I'm developing an irc client add-in for vs.net. On the control hosted by a toolbox window I have various textbox controls. I'm trying to acknowledge when the ENTER key is pressed within a textbox. I've done this before on a winform so I do know how to use the KeyDown, KeyUp, KeyPress events to check for the e.KeyCode == Keys.Return or e.KeyChar == '\r' or e.KeyChar == (char)13.

None of these methods work. I have reason to believe that the problem arises from the fact that the textbox is hosted in a CUSTOM control and not a form. From tests I've done, I found out that the textbox does not process the following keys: ENTER, NUMPAD ENTER, CONTROL, ALT, etc...the list goes on.

How do I get the textbox to process ENTER key presses?

Nathan.
GeneralRe: Enter key pressed in a VS.NET addin control Pin
Nathan Tran13-Dec-02 20:27
Nathan Tran13-Dec-02 20:27 
GeneralRe: Enter key pressed in a VS.NET addin control Pin
WizardOfPeyton6-Jan-03 9:48
WizardOfPeyton6-Jan-03 9:48 
Questiongive sample code plzz? Pin
imran_rafique13-Dec-02 9:24
imran_rafique13-Dec-02 9:24 
AnswerRe: give sample code plzz? Pin
Gaul13-Dec-02 13:08
Gaul13-Dec-02 13:08 
GeneralRe: give sample code plzz? Pin
imran_rafique14-Dec-02 10:29
imran_rafique14-Dec-02 10:29 
GeneralRe: give sample code plzz? Pin
imran_rafique15-Dec-02 2:33
imran_rafique15-Dec-02 2:33 
GeneralRe: give sample code plzz? Pin
Gaul15-Dec-02 3:15
Gaul15-Dec-02 3:15 
GeneralRe: give sample code plzz? Pin
imran_rafique15-Dec-02 9:52
imran_rafique15-Dec-02 9:52 
GeneralRe: give sample code plzz? Pin
Gaul16-Dec-02 4:45
Gaul16-Dec-02 4:45 
GeneralMultiline edit boxes: WantReturn Pin
Le centriste13-Dec-02 6:32
Le centriste13-Dec-02 6:32 
GeneralRe: Multiline edit boxes: WantReturn Pin
leppie13-Dec-02 6:49
leppie13-Dec-02 6:49 
GeneralRe: Multiline edit boxes: WantReturn Pin
Le centriste13-Dec-02 8:18
Le centriste13-Dec-02 8:18 
GeneralScroll Bars Pin
Ollie13-Dec-02 5:36
Ollie13-Dec-02 5:36 
GeneralRe: Scroll Bars Pin
leppie13-Dec-02 6:55
leppie13-Dec-02 6:55 
GeneralRe: Scroll Bars Pin
vickycao5-Jan-03 21:45
vickycao5-Jan-03 21:45 
GeneralScollable PictureBox Pin
Torsch13-Dec-02 5:12
Torsch13-Dec-02 5:12 
GeneralRe: Scollable PictureBox Pin
leppie13-Dec-02 7:00
leppie13-Dec-02 7:00 

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.