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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:28:35+00:00 2026-05-11T21:28:35+00:00

I have a WPF application embedded in a Microsoft Outlook 2003 window. Everything is

  • 0

I have a WPF application embedded in a Microsoft Outlook 2003 window. Everything is working fine, except none of my TextBox controls accept the backspace key. I’ve done some research, and the problem exists only when my window is a child of the outlook window and not if it’s another window (I injected it into firefox and it works fine, and if I put my wpf UserControl into a dialog window it also works). This seems to be the converse problem that people are reporting (textbox only accepting delete/arrow keys/etc), and this thread was somewhat informative (though did not fix my issue): WPF TextBox not accepting Input when in ElementHost in Window Forms

Here is my setup:
I create a WPF UserControl, which I then put in an ElementHost. I put that host into a Windows Forms UserControl, which gets put in another Forms UserControl, which gets put into a NativeWindow (I’ve tried removing some of the UserControl wrapping, but with no effect). This Native window then becomes a child of the Outlook window and gets placed where I need it to be in Outlook.

Does anyone have any idea? Maybe I need to handle the windows messages differently? I did some research and found out that Outlook gets a WM_COMMAND message when I hit the backspace key, but not when I don’t hit anything else. Maybe it’s interpreting the backspace key as a menu accelerator or something like that?

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-11T21:28:35+00:00Added an answer on May 11, 2026 at 9:28 pm

    I found a way to get around this. I extended Outlook’s WndProc and listened for the WM_COMMAND. Whenever it came up I tell my WPF UserControl system to send the backspace key to the currently keyboard focused control.

    I can’t seem to get WM_COMMAND to fire on any other keypress besides backspace so it’s working pretty well right now.

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

Sidebar

Ask A Question

Stats

  • Questions 203k
  • Answers 203k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You cannot use SendMessage, PostMessage and similar functions because application… May 12, 2026 at 8:35 pm
  • Editorial Team
    Editorial Team added an answer What you want to do is called cherry picking. You… May 12, 2026 at 8:35 pm
  • Editorial Team
    Editorial Team added an answer do I understand correctly that you want to draw clouds… May 12, 2026 at 8:35 pm

Related Questions

I have a question about how to deploy WPF application into a PC without
I have a WPF application (.NET 3.0, VS2008) that displays data in a tab
I have a simple little application that performs some analysis of all our corporate
I am trying to modify an existing WPF application for localization. One of my

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.