Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6923421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:32:02+00:00 2026-05-27T10:32:02+00:00

In my Windows Phone 7 Application I’ve written a bit of code to make

  • 0

In my Windows Phone 7 Application I’ve written a bit of code to make the focus jump to the next textbox on the return key bein pressed. This all works fine, but now what I want to do is get the software keyboard out of the way if the user pressed return on the final textbox. However there is no UnFocus() method. What should I do instead? 🙂

I thought about Focusing something else (e.g. The PhoneApplicationPage) but this doesnt have a Focus() method.

        public List<TextBox> Textboxes = new List<TextBox> { };

    public void CheckForReturn(object sender, KeyEventArgs e)
    {
        TextBox ThisTextbox = sender as TextBox;
        if (e.Key == Key.Enter)
        {
            int ThisTextboxListPosition = Textboxes.IndexOf(ThisTextbox);
            int NextTextboxListPosition = ThisTextboxListPosition + 1;

            if (NextTextboxListPosition < Textboxes.Count)
            {
                TextBox NextTextBox = Textboxes[NextTextboxListPosition];
                NextTextBox.Focus();
            }
            else
            {
                //Something like this!
                //ThisTextbox.Unfocus();
            }
        }
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:32:02+00:00Added an answer on May 27, 2026 at 10:32 am

    I am always use in this situation

    this.Focus()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

net to make a Windows Phone application. I have a listBox on page1 called
I'm developing a Windows Phone application. I make the question here because I think
I was trying to customize the textbox control in the windows phone application. I
Windows Phone application (Silverlight 3) I have a textblock <TextBlock Text={Binding Key} FontSize=40 Foreground={Binding
I write windows phone 7 application and there is a next problem: My app
Is it allowed by Windows Phone application certification rules, to only have users be
I need Windows Phone application to upload files to a web server using the
I need my Windows Phone application to be able to upload audio files to
I am developing a windows phone application which allows user to download files from
I'm developing a Windows Phone application. Is there anyway to animate transition between phone

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.