How to Creating Windows Forms Controls Dynamically in WPF?

 Posted by Shantanupatel on 3/6/2012 | Category: WPF Interview questions | Views: 2738 | Points: 40

1) Import the following namespaces:
using System.Windows.Forms;
using System.Windows.Forms.Integration;
2) Create the windows forms control and set its properties and event handlers.
3) Add the control to the 'Child' property of 'WindowsFormsHost' object.
4) Add the host object to the 'Children' collection of the panel.

Source: Interview | Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response