Click here to Skip to main content
16,006,341 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralProxy configuration. Pin
Ray Cassick26-Sep-02 4:40
Ray Cassick26-Sep-02 4:40 
General.NET 1.0 to .NET 1.1 Compatibility Considerations and Version Changes Pin
Paul Watson26-Sep-02 2:22
sitebuilderPaul Watson26-Sep-02 2:22 
GeneralRe: .NET 1.0 to .NET 1.1 Compatibility Considerations and Version Changes Pin
David Stone26-Sep-02 3:54
sitebuilderDavid Stone26-Sep-02 3:54 
GeneralAdding a web reference... Pin
Ray Cassick25-Sep-02 17:13
Ray Cassick25-Sep-02 17:13 
GeneralRe: Adding a web reference... Pin
Paul Watson26-Sep-02 2:18
sitebuilderPaul Watson26-Sep-02 2:18 
GeneralRe: Adding a web reference... Pin
Ray Cassick26-Sep-02 3:57
Ray Cassick26-Sep-02 3:57 
GeneralRe: Adding a web reference... Pin
Ray Cassick26-Sep-02 11:18
Ray Cassick26-Sep-02 11:18 
GeneralDetecting Enter in a Single-line Textbox Pin
Waleed Eissa25-Sep-02 12:13
Waleed Eissa25-Sep-02 12:13 
Hi Code Gurus,
(in a C# Windows Form application) How can I detect that the Enter key was pressed in a single line TextBox control in .NET? I want to enable the user to type in some text in the TextBox (a command) then by pressing Enter an action is taken (like the address bar in IE). This can be done very easily in VB and VC++. But in .NET, the only way I discovered so far is to use a multi-line textbox control and detect when the user presses Enter (using either KeyDown or KeyPress events) then remove the new line characters from the text, this is other than deleting any multine text pasted in the control except the first line. I believe there must be a better and more elegant way to do this but I just don't know it!


Regards,
Waleed

(a.k.a. Wal2k)
www.wal2k.com

GeneralRe: Detecting Enter in a Single-line Textbox Pin
David Stone25-Sep-02 13:51
sitebuilderDavid Stone25-Sep-02 13:51 
GeneralAccessing Public Members of the Main Form from Another Form Pin
Waleed Eissa25-Sep-02 12:11
Waleed Eissa25-Sep-02 12:11 
GeneralRe: Accessing Public Members of the Main Form from Another Form Pin
Richard Deeming26-Sep-02 8:49
mveRichard Deeming26-Sep-02 8:49 
GeneralAssembly resources Pin
Noam Ben Haim25-Sep-02 3:50
Noam Ben Haim25-Sep-02 3:50 
GeneralASP.NET examples Pin
Shaun Wilde25-Sep-02 0:31
Shaun Wilde25-Sep-02 0:31 
GeneralRe: ASP.NET examples Pin
Kevin McFarlane25-Sep-02 5:40
Kevin McFarlane25-Sep-02 5:40 
GeneralRe: ASP.NET examples Pin
mstephens25-Sep-02 23:29
mstephens25-Sep-02 23:29 
GeneralRe: ASP.NET examples Pin
Shaun Wilde26-Sep-02 4:26
Shaun Wilde26-Sep-02 4:26 
GeneralWriting (not using) Asynchronous Methods Pin
Heath Stewart24-Sep-02 14:17
protectorHeath Stewart24-Sep-02 14:17 
GeneralRe: Writing (not using) Asynchronous Methods Pin
Heath Stewart24-Sep-02 17:22
protectorHeath Stewart24-Sep-02 17:22 
GeneralRe: Writing (not using) Asynchronous Methods Pin
leppie24-Sep-02 20:50
leppie24-Sep-02 20:50 
GeneralAutomating Word application in C# Pin
Noam Ben Haim24-Sep-02 4:30
Noam Ben Haim24-Sep-02 4:30 
GeneralRe: Automating Word application in C# Pin
Paul Riley24-Sep-02 5:06
Paul Riley24-Sep-02 5:06 
GeneralRe: Automating Word application in C# Pin
Stephane Rodriguez.24-Sep-02 5:15
Stephane Rodriguez.24-Sep-02 5:15 
GeneralRe: Automating Word application in C# Pin
Chad Smith26-Sep-02 8:01
professionalChad Smith26-Sep-02 8:01 
General.NET method corresponding to WNetAddConnection Pin
EnkelIk24-Sep-02 0:03
EnkelIk24-Sep-02 0:03 
GeneralAppDomains and CodeDOM Pin
mstephens23-Sep-02 12:09
mstephens23-Sep-02 12:09 

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.