Sign in
|
Join
Search
Jeff and .NET
The .NET musings of Jeff Putz
Home
Contact
About
RSS
Atom
Comments RSS
Recent Posts
Everyone else is doing it (incorrectly)!
Lessons from live blogging with Azure (nothing bad happened)
Building for Web scale is a different skill
Building a live blog app in Windows Azure
One interface to rule them all
Sponsors
advertise here
Tags
.NET
agile
AJAX
Apple
ASP.NET AJAX
Azure
Career
cloud
Community News
culture
General Software Development
Internet
Microsoft
Misc.
Mix
Mobile
MSDN
MVC
Off-Topic
open source
POP Forums
Silverlight
SQL Server
Surface
unit testing
video
Vista
Visual Studio
Web 2.0
Windows Phone
Windows RT
writing
Xbox 360
News
Navigation
Home
Blogs
My Sites
POP Forums
My Personal Blog
POP World Media
@jeffputz on Twitter
Archives
May 2013 (3)
April 2013 (3)
March 2013 (1)
February 2013 (2)
December 2012 (1)
November 2012 (1)
October 2012 (2)
September 2012 (3)
August 2012 (3)
July 2012 (2)
June 2012 (4)
April 2012 (3)
March 2012 (2)
February 2012 (4)
January 2012 (4)
December 2011 (3)
November 2011 (1)
September 2011 (1)
August 2011 (1)
April 2011 (4)
March 2011 (5)
January 2011 (2)
December 2010 (2)
November 2010 (1)
October 2010 (1)
September 2010 (2)
August 2010 (4)
July 2010 (2)
June 2010 (2)
May 2010 (1)
April 2010 (1)
March 2010 (1)
February 2010 (2)
January 2010 (3)
December 2009 (2)
November 2009 (1)
October 2009 (5)
September 2009 (2)
August 2009 (10)
July 2009 (6)
June 2009 (7)
May 2009 (6)
April 2009 (6)
March 2009 (9)
February 2009 (3)
January 2009 (8)
December 2008 (4)
November 2008 (6)
October 2008 (5)
September 2008 (9)
August 2008 (3)
July 2008 (6)
June 2008 (8)
May 2008 (8)
April 2008 (3)
March 2008 (15)
February 2008 (4)
January 2008 (6)
December 2007 (7)
November 2007 (5)
October 2007 (5)
September 2007 (4)
August 2007 (6)
July 2007 (4)
June 2007 (6)
May 2007 (6)
April 2007 (2)
March 2007 (7)
February 2007 (12)
January 2007 (9)
December 2006 (6)
November 2006 (8)
October 2006 (11)
September 2006 (9)
August 2006 (22)
July 2006 (13)
June 2006 (4)
May 2006 (6)
April 2006 (8)
March 2006 (10)
February 2006 (22)
January 2006 (6)
December 2005 (3)
November 2005 (10)
October 2005 (6)
September 2005 (16)
August 2005 (19)
July 2005 (23)
June 2005 (12)
May 2005 (6)
April 2005 (16)
March 2005 (41)
February 2005 (20)
January 2005 (24)
December 2004 (35)
November 2004 (20)
October 2004 (24)
September 2004 (19)
August 2004 (38)
July 2004 (31)
June 2004 (29)
May 2004 (21)
April 2004 (21)
March 2004 (20)
February 2004 (15)
Windows Forms n00b question about text boxes
OK, Windows apps are obviously more foreign to me than I thought. Is there some property I'm overlooking for text boxes that, when the user presses enter, will fire a particular button press?
Posted:
Aug 22 2005, 12:48 PM
by
Jeff
| with
4 comment(s)
Filed under:
.NET
Comments
Martin Naughton said:
Hi,
The property is on the Form (AcceptButton), not the TextBox.
Thanks,
Martin
#
August 22, 2005 1:04 PM
Jay R. Wren
said:
or you can check the keypress event for the textbox and see if it was an enter key.
#
August 22, 2005 5:13 PM
Jerry Pisk said:
Except that at least in Win32 the enter key message will never be sent to the edit control unless it is created with ES_WANTRETURN style. I'm thinking .Net's message handling will not be much different from Win32's.
#
August 22, 2005 6:03 PM
Lockheed said:
Actually Winforms Textboxen have a property to 'Accept Return' so that they will add a carriage return to the text in the box. Mainly used for multi-line text boxes. Other than that, you can check on keypress for the retrun key being hit.
#
August 29, 2005 7:50 AM
Leave a Comment
Title
(required)
Name
(required)
Your URL
(optional
)
Comments
(required)
Remember Me?