Hi,
I have a multiline textbox. When ever a user press the "Enter" key this textbox will focus. But the focus is in second line first position and not in the first line first position. And one more thing i have given "AcceptReturn=True" in xaml file for this textbox. Please help.
Thanks,
Vijay
Loading
vijay ragsPosted Dec 5, 2011, 7:45 AM
Priya LingePosted Dec 5, 2011, 5:45 AM
Hi,
Please check this.
I have two textboxes in my application as follow,
On txtfirst key down event i will focus txtsecond.
private void txtfrist_KeyDown(object sender, KeyEventArgs e)
{
if (e.Key.Equals(Key.Enter))
{
txtsecond.Focus();
}
}
Focus will go to txtsecond textbox on secondline firstposition.
Thanks.