Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
01156834
Message ID:
01158415
Views:
25
>Absolutly
>
>Tried it a number of times with other code before i tried yours
>
>Is it worth trying other KeyEvents
>
>Did you get my note about KEYDOWN event
>
>In PocketP 2003 it works for REturn Key in PocketPS 2005 it doesnt!!!!!
>
>Regards
>
>R

You could try the textchanged event. Like this:
private void textBox1_TextChanged(object sender, EventArgs e)
{
  ((TextBox)sender).Text = ((TextBox)sender).Text.ToUpper();
  ((TextBox)sender).SelectionStart = ((TextBox)sender).Text.Length;
}
not as pretty as the keypress but it gets the job done. I would not use any of the other key events. Well maybe the keyup event.

What is wrong with the return key?

There is a forum for PDAs. There is also a separate category for compact framework here in the .net forum. You might want to try your luck there.
Semper ubi sub ubi.
Previous
Next
Reply
Map
View