Host Windows Forms Controls in WPF – Keyvan Nayyeri


Process is simple.  First you need to add a HWND to your WPF applications in UI to host Windows Form controls there.  Actually you must derive a class from HwndHost base class to be able to do this but thankfully Microsoft has done the main job and has added a default implementation that is suitable for many common needs and it’s WindowsFormsHost.

 image

Via Host Windows Forms Controls in WPF – Keyvan Nayyeri

Advertisements

One thought on “Host Windows Forms Controls in WPF – Keyvan Nayyeri

  1. Pingback: » Host Windows Forms Controls in WPF - Keyvan Nayyeri

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s