Question : Silverlight Question on raising event by keyboard's Enter Key

Hello,

I have a question. My scenario is like below:

I have a textbox and a button control in my silverlight application. User can enter some words in the textbox and can click the button, and the button event gets raised. My question is:

Do you think it is possible in Silverlight to have the following capacity---

> user would be able to press Enter in the keyboard as well. User will enter input, and

1) he will be able to press enter, or, if he wants,
2) he would be able to click the submit button.

Is it possible to raise an event from key board's keys: in this case the Enter key.

If it is, would you please tell me how to accomplish this, or would you please tell me what is the tutorial link on this matter in MSDN, or if you know about any website that talks about this matter, let me know.

Thank you.

Answer : Silverlight Question on raising event by keyboard's Enter Key

Use
1:
2:
3:
if ("S".equals(lat_direction )) {
	latVal *= -1;
}
Random Solutions  
 
programming4us programming4us