Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrate WPF and Windows Forms

Tags:

winforms

wpf

I am learning WPF and was wondering if there is a way to show a WPF Window from an existing C# WinForm without 'hosting' WinForm in WPF? I tried using myWPFWindow.show() on button click event for displaying the Window. The window is getting displayed but the textboxes displayed in the window are preventing me from typing. Can someone point me in the right direction on how to get this working?

Thanks.

like image 660
user26242 Avatar asked Dec 04 '25 20:12

user26242


1 Answers

Yes, that is a strange problem I also ran into one year ago. I don't exactly remember the solution, but this forum thread should point you into the right direction.

like image 128
OregonGhost Avatar answered Dec 06 '25 13:12

OregonGhost