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 4260710
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:57:25+00:00 2026-05-21T05:57:25+00:00

Environment Windows XP x32 Visual Studio 2005 Standard Edition Honeywell Dolphin 9500 running Windows

  • 0

Environment

  • Windows XP x32 Visual Studio 2005 Standard Edition
  • Honeywell Dolphin 9500 running Windows Mobile 2003 (Pocket PC 2003)
  • .NET Compact Framework 1.0 SP3 and .NET Framework 1.1
  • Using VC#

Goal

I have a form with a bunch of labels and text boxes on it. This form is populated by “Work Order” objects and is repopulated with the next or previous “Work Order” when the left or right hardware rocker buttons are pressed on the device. I want to allow the user to edit a combo/text box and then put focus back on the form so the the form’s KeyDown event handler takes precedence.


Problem

On initial application load, when the form has focus, the rocker switch functions perfectly and the user can index back and forth through the work orders by hitting the hardware left or right buttons. When the user selects a text/combo box to edit the value, the form loses focus and the combo/text box’s KeyDown event takes precedence.


Question

How can I force the controls to return focus to the form object without inhibiting a user’s ability to edit the values?


Things I Have Tried

  • I tried setting up each control with a LostFocus() event handler that only contained the line: this.Focus() in order to return focus to the form once the current control lost focus. However, I “clicked” around and couldn’t get the control to lose focus.

Code

In my past questions I have always put the code in a friendpaste.com document because the auto-generated form code makes the document somewhat lengthy. If the code needs to be in the body, just let me know and I will paste it here. Otherwise, the code is located at the friend paste link below.

http://friendpaste.com/CJ8CblLebHRXqA7UMLyvc


Also…

Feel free to critique any code you see for any reason but ideally do it as a comment to the question as opposed to an answer to keep the thread on topic. I am a new programmer and I am very new to Pocket PC Visual C# development and welcome, no plead for, any feedback/criticism I can get a hold of.

Additionally, let me know if further information is required and I will do my best to include it as soon as possible.

Thanks!

  • 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-21T05:57:25+00:00Added an answer on May 21, 2026 at 5:57 am

    I just switched to a “moded” editing design and returned focus when “done editing”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Environment Windows XP x32 Visual Studio 2005 Standard Edition Honeywell Dolphin 9500 running Windows
Environment Windows XP SP3 x32 Visual Studio 2005 Standard Device/Platform: Honeywell Dolphin 9500 with
Environment: Windows XP, Visual Studio 2010, IIS NOT installed. I've developed a WCF service
I have test this code on my development environment (windows 7, visual studio 2010)
Environment: Windows 7 SP1 Visual Studio 2010 Ultimate SP1 .NET 4.0 I have a
Environment: Windows Server 2003 R2 Enterprise 64bit, SP2 .NET framework is supposedly installed (2.0
Environment: Windows 2003 Server (32 bit); IIS6, ASP.NET 2.0 (3.5); 4Gb Ram; 1 Worker
I'm running in a windows environment with Trac / SVN and I want commits
I have a SQL Server 2008 in production environment (Windows 2003 -64 bit) and
I'm trying to debug an ASP.NET web application in this environment: Windows Server Standard

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.