Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello,
To Every One I am Working in Asp.net 2010, Now I show one Message Box of click event of another form submit button.

Now i want to set Enter key on Message Box Yes and No Button so some one please help me how can i do this .






Thanks Regards ...
Posted
Comments
tanweer 20-Sep-13 3:36am    
it seems your working environment is Windows form application, please clear it first
OriginalGriff 20-Sep-13 4:00am    
I looked at this twenty minutes ago, then I cam back now to see if it made any sense this time.
No, it doesn't.
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
So, tell us what environment you are working in. Try to explain what you are doing, and trying to do - what you have tried, where you are stuck. The better the information you give us, the better the help we can give - help us to help you!
Use the "Improve question" widget to edit your question and provide better information.
Ankit Patel(AP) 20-Sep-13 4:24am    
I am Sorry for that and i apologize for that...
I am working on web application and Here i give you the exact scenario of my requirement ,
Let me take one example , I have one registration form and on the click event of the registration submit button, i want to show one message box with the successfully register Message, Now on that message box i put one button with ok ,

Now if i press enter key at that time it take by default ok and close the message box...

1 solution

"I am Sorry for that and i apologize for that..."
No need to apologize! :laugh:
It's just that we really can't see anything except what you tell us, so you have to "take a step back" from the problem when you explain it, it all. Lots of people get too close to teh problem that they assume we know exactlky what they are talking about before they start typing... ;)


Try this: HtmlForm.DefaultButton[^] - it should do what you want.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900