We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Platform : WPF
|
Category : Window

How do I host Windows Forms control in a WPF Window ?

Windows forms can be hosted using the WindowsFormsHost markup extension of the "windowsformsintegration.dll". References for "windowsformsintegration.dll" and "System.Windows.Forms.dll" have to be added.

The following code snippet is used to add a control to the Windows Forms.

Note: windowsformsintegration.dll will be available in the following location,
Program files\Reference Assemblies\Microsoft\Framework\v3.0\WindowsFormsIntegration.dll.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.