I have a problem with input interoperation in WinForms and WPF.
Winforms/C#:
UserControlDLL.MyUserControl userControl = new UserControlDLL.MyUserControl();
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
userControl.ShowTextBox();
}
WPF:
public partial class MyUserControl : UserControl
{
internal static DisplayWindow display;
public MyUserControl()
{
InitializeComponent();
display = new DisplayWindow();
}
}
When userControl creates the new DisplayWindow I can't enter anything in the textbox on the DisplayWindow.