Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am writing a virtual keyboard as on overlay for 3rd party apps. I am trying to find a way to keep the .NET keyboard from ever taking the focus from the 3rd part app (started by the .NET App) to prevent the title bar flickering etc...

 

I have tried this link

http://www.xtremedotnettalk.com/showthread.php?t=81013&highlight=prevent+focus

But it appears to be for 2 windows in the same .NET app, not 1 .NET app and other programs.

 

I am using VB.NET and sendkeys/sendmessage (depending on the user options).

 

Thanks in advance!

Posted

Found the solution

 

For anyone interested...

 

Private Const WS_EX_NOACTIVATE = &H8000000

 

Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams

Get

Dim cp As CreateParams = MyBase.CreateParams

cp.ExStyle = cp.ExStyle Or WS_EX_NOACTIVATE

Return cp

End Get

End Property

 

I am writing a virtual keyboard as on overlay for 3rd party apps. I am trying to find a way to keep the .NET keyboard from ever taking the focus from the 3rd part app (started by the .NET App) to prevent the title bar flickering etc...

 

I have tried this link

http://www.xtremedotnettalk.com/showthread.php?t=81013&highlight=prevent+focus

But it appears to be for 2 windows in the same .NET app, not 1 .NET app and other programs.

 

I am using VB.NET and sendkeys/sendmessage (depending on the user options).

 

Thanks in advance!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...