winforms-interop

WPF windows forms host keyboard events

This is probably a simple question but i've been unable to find a quick answer. I have a WPF application which has a Windows Forms Control hosting a GeckoFX component (doesn't really matter). What i want to do is capture key down events inside the Windows Forms Control and grab focus of a WPF control for some particular key combination...

WPF WindowsFormsHost does not bubble up untreated key gestures

Ok, I'm not sure I understand how this should work, but in my app I have bound a key gesture (Ctrl+K) to a RoutedCommand. No matter where I focus in my app, the key combination works, except if I use it inside of a WindowsFormsHost containing a web browser control. I tried capturing the PreviewKeyDown event for the web browser control an...

Using ActiveX control in WPF

I'm attempting to host an ActiveX control in a WPF app. After attempting to use existing info on the web and here, I've hit a dead-end. I need to use an ActiveX control provided to communicate with a UV power meter. They provide an application that registers and uses the control and even includes some useful demo apps. I stripped out th...

how to add a WPF dialog to a Winforms project

Hi I am using Visual Studio 2008 targeting .net 3.5 framework. I need to add a WPF dialog to a Winforms project. I was thinking that by adding reference to PresentationCore, PresentationFramework and WindowsBase.dll and copying a WPF dialog from a test WPF project to the WinForms project in question should do the trick, but after that wh...

Winform->WPF MVVM Keybinding Error?

I need some assistance in getting WPF KeyBindings working when being called from a WinForm application. I've created what I think is the basic parts to demonstrate the problem. I can provide an sample application if that helps. The WinForm application starts a form which has a button that calls the WPF Private Sub Button1_Click(ByVal ...

Stop metthod of AxShockwaveFlash com component thorws Attempted to read or write protected memory

Hi, I'm using AxShockwaveFlash com component to show a flash file in windows application. , I call the method Stop() to stop that flash. But some of the users, its throwing the exception "Attempted to read or write protected memory,This is often an indication that other memory is corrupt ". Please let me know why this is happening f...

Tracking WPF mouse movements amidst multiple WindowsFormsHost controls

I have a WPF application that has several WindowsFormsHost controls. I'm trying to track the mouse position inside of my application when it is maximized in full-screen mode. If the user puts the mouse near the top screen, I'd like to display a Window with additional menus. I can use: Window.PreviewMouseMove InputManager.PreProcessInp...

Open Lotus Notes mail page without sending from .NET

Hi ! I'd like to open a new email page, in Lotus Notes (I know I know, I hate it too...) from a WinForm (.NET) application. Right now, I have found this that uses Interop.Domino.dll very useful. I adapted it a little and it works. Unfortunately, I don't want the email to be sent. I just need to open a new mail window with the body I giv...