Click here to Skip to main content
15,890,897 members
Home / Discussions / C#
   

C#

 
AnswerRe: Can anyone give me advice on nested loops? Pin
tarun199126-Dec-14 19:08
professionaltarun199126-Dec-14 19:08 
AnswerRe: Can anyone give me advice on nested loops? Pin
BillWoodruff26-Dec-14 20:51
professionalBillWoodruff26-Dec-14 20:51 
GeneralRe: Can anyone give me advice on nested loops? Pin
Member 1133710826-Dec-14 21:14
Member 1133710826-Dec-14 21:14 
GeneralRe: Can anyone give me advice on nested loops? Pin
BillWoodruff26-Dec-14 21:40
professionalBillWoodruff26-Dec-14 21:40 
QuestionDetect Enter key press - click button when pressed Pin
robwm126-Dec-14 11:42
robwm126-Dec-14 11:42 
AnswerRe: Detect Enter key press - click button when pressed Pin
Dave Kreskowiak26-Dec-14 16:07
mveDave Kreskowiak26-Dec-14 16:07 
GeneralRe: Detect Enter key press - click button when pressed Pin
BillWoodruff26-Dec-14 23:04
professionalBillWoodruff26-Dec-14 23:04 
GeneralRe: Detect Enter key press - click button when pressed Pin
Dave Kreskowiak27-Dec-14 5:13
mveDave Kreskowiak27-Dec-14 5:13 
Actually, you don't have to do that at all. The AcceptsReturn property is only for Multiline textboxes.

What does have to happen, which I forgot about, is that you have to handle the Click event for the button you set as the AcceptButton and set the forms DialogResult property to whatever you want it to be in order for the AcceptButton property to work. The CancelButton property sets this for you, but the AcceptButton doesn't.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

AnswerRe: Detect Enter key press - click button when pressed Pin
tarun199126-Dec-14 19:16
professionaltarun199126-Dec-14 19:16 
GeneralRe: Detect Enter key press - click button when pressed Pin
robwm127-Dec-14 6:24
robwm127-Dec-14 6:24 
GeneralRe: Detect Enter key press - click button when pressed Pin
tarun199128-Dec-14 7:45
professionaltarun199128-Dec-14 7:45 
GeneralRe: Detect Enter key press - click button when pressed Pin
tarun199131-Dec-14 7:42
professionaltarun199131-Dec-14 7:42 
AnswerRe: Detect Enter key press - click button when pressed Pin
BillWoodruff26-Dec-14 20:02
professionalBillWoodruff26-Dec-14 20:02 
GeneralRe: Detect Enter key press - click button when pressed Pin
robwm127-Dec-14 6:22
robwm127-Dec-14 6:22 
QuestionIn Custom Featured MessageBox how to change font size Pin
Member 1111316725-Dec-14 18:47
Member 1111316725-Dec-14 18:47 
AnswerRe: In Custom Featured MessageBox how to change font size Pin
BillWoodruff25-Dec-14 18:57
professionalBillWoodruff25-Dec-14 18:57 
AnswerRe: In Custom Featured MessageBox how to change font size Pin
syed shanu25-Dec-14 19:56
professionalsyed shanu25-Dec-14 19:56 
AnswerRe: In Custom Featured MessageBox how to change font size Pin
deepankarbhatnagar26-Dec-14 1:46
professionaldeepankarbhatnagar26-Dec-14 1:46 
AnswerRe: In Custom Featured MessageBox how to change font size Pin
OriginalGriff26-Dec-14 2:46
mveOriginalGriff26-Dec-14 2:46 
Questionloop through user controls Pin
Jassim Rahma24-Dec-14 4:32
Jassim Rahma24-Dec-14 4:32 
AnswerRe: loop through user controls Pin
OriginalGriff24-Dec-14 4:46
mveOriginalGriff24-Dec-14 4:46 
GeneralMessage Closed Pin
24-Dec-14 7:07
professionalBillWoodruff24-Dec-14 7:07 
GeneralRe: loop through user controls Pin
OriginalGriff24-Dec-14 7:13
mveOriginalGriff24-Dec-14 7:13 
GeneralRe: loop through user controls Pin
Jassim Rahma24-Dec-14 19:31
Jassim Rahma24-Dec-14 19:31 
AnswerRe: loop through user controls Pin
Kornfeld Eliyahu Peter24-Dec-14 19:48
professionalKornfeld Eliyahu Peter24-Dec-14 19:48 

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.