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

  • Home
  • SEARCH
  • 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 800893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:21:34+00:00 2026-05-14T23:21:34+00:00

My touch screen keyboard is highly customizable interface and has every component I need

  • 0

My touch screen keyboard is highly customizable interface and has every component I need except for sending keys, anyone see a problem with this. Originally when I was creating it I was going to use the Forms.SendKeys.Send() but it’s a WPF application… no go. For starters VB.Net in its infinite wisdom decided it would not handle default form messages. Go figure.

Or perhaps, this is my real problem, I can’t get the WPF application to stop getting focus. I want it to act like the windows touch keyboard, but Every action that occurs in the transparent WPF makes that application the active one. I want events to still occur but I need the active window to be the window you wish to type into, like notepad.

Any Suggestions on what I should do, to make my WPF not focusable and to send keyboard buttons to the focused (or other) window?

PS, I’m using WPF in Visual Studio 2010 in Vb.Net (I can use C# Code to!)

  • 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-14T23:21:35+00:00Added an answer on May 14, 2026 at 11:21 pm

    I think you will find the answer here usefull

    There are a number of compilcated ways to achieve this, but the solution I posed that the above link is easy and only has one quirk, that to be honest can be worked around. When dragging the input window it does not provide feedback until the move is completed, but you can work around this by handling some non-client messages, I can spend sometime look at the work around if you need, but first confirm this solution is right for you.

    Update: A sample of how a the approach above can be applied to a WPF form.

    using System;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Input;
    using System.Windows.Interop;
    using System.Runtime.InteropServices;
    
    namespace WpfApplication1
    {
      /// <summary>
      /// Interaction logic for Window1.xaml
      /// </summary>
      public partial class Window1 : Window
      {
        public Window1()
        {
          InitializeComponent();
        }
    
        const int WS_EX_NOACTIVATE = 0x08000000;
        const int GWL_EXSTYLE = -20;
    
        [DllImport("user32", SetLastError = true)]
        private extern static int GetWindowLong(IntPtr hwnd, int nIndex);
    
        [DllImport("user32", SetLastError = true)]
        private extern static int SetWindowLong(IntPtr hwnd, int nIndex, int dwNewValue);
    
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
          WindowInteropHelper wih = new WindowInteropHelper(this);
          int exstyle = GetWindowLong(wih.Handle, GWL_EXSTYLE);
          exstyle |= WS_EX_NOACTIVATE;
          SetWindowLong(wih.Handle, GWL_EXSTYLE, exstyle);
        }    
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 511k
  • Answers 511k
  • 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 I found what the problem was. I was not able… May 16, 2026 at 5:14 pm
  • Editorial Team
    Editorial Team added an answer Heroku's current stack, Cedar, uses 1.9.2 by default. Cedar also… May 16, 2026 at 5:14 pm
  • Editorial Team
    Editorial Team added an answer This all works with aliased use aliased 'MyApp::Model::Item'; use aliased… May 16, 2026 at 5:14 pm

Trending Tags

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

Top Members

Related Questions

I notice that when using my touch-screen smartphone (no physical keyboard) that when an
I'm trying to extend my new WPF Touch Screen Keyboard (DLL) Library, to allow
I have been working on a touch screen application. I need to know if
I'm developing an application in C++ that's partially driven by touch-screen on Windows XP
I am creating an touch screen application using Swing and have a request to
I'm using the following to capture Touch Events on an Iphone. document.addEventListener('touchmove', function(event) {
A friend and I were discussing Mozilla's latest touch support and got on the
I have four UIViews on a UIScrollView (screen divided into quartiles) On the quartiles,
I'm making a game which requires multiple images to be drawn on the screen.
I've got an issue with a WPF application that I'm writing. The app needs

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.