Click here to Skip to main content
15,892,005 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Creating this sort of style in WPF/Blend Pin
Gideon Engelberth22-May-09 15:12
Gideon Engelberth22-May-09 15:12 
AnswerRe: Creating this sort of style in WPF/Blend Pin
Unagii10-Feb-10 3:22
Unagii10-Feb-10 3:22 
GeneralRe: Creating this sort of style in WPF/Blend Pin
pancakesOfMassDeliciousness10-Feb-10 3:27
pancakesOfMassDeliciousness10-Feb-10 3:27 
GeneralRe: Creating this sort of style in WPF/Blend Pin
Unagii10-Feb-10 3:45
Unagii10-Feb-10 3:45 
GeneralOverview: WPF Pin
Kamal Gurnani22-May-09 0:44
Kamal Gurnani22-May-09 0:44 
GeneralRe: Overview: WPF Pin
Pete O'Hanlon22-May-09 0:58
mvePete O'Hanlon22-May-09 0:58 
GeneralRe: Overview: WPF Pin
Allen Anderson25-May-09 17:49
Allen Anderson25-May-09 17:49 
QuestionInteroperability: Form vs. Window Pin
Kunal Chowdhury «IN»21-May-09 23:24
professionalKunal Chowdhury «IN»21-May-09 23:24 
Hi,

How can I open & run my WPF window from a Windows Form?

I created a WPF application project with a Window named "MyWindow".
I also created a Windows Form named "MyForm" in the same project.
Now, from the App.xaml.cs, I am opening MyForm, where one button is there.
On click of that button, my WPF Window should open.

I used the following code:

<br />
MyWindow w = new MyWindow();<br />
w.Show();<br />


So, now on click of the button, WPF window is opening fine.
But, the problem is, when I am closing my WPF Window, the Form is also closing & exiting the application.

How can I solve this problem? My application should not close until I close my Windows Form. Please help...............
AnswerRe: Interoperability: Form vs. Window Pin
Pete O'Hanlon22-May-09 0:27
mvePete O'Hanlon22-May-09 0:27 
AnswerRe: Interoperability: Form vs. Window Pin
#realJSOP22-May-09 0:30
mve#realJSOP22-May-09 0:30 
AnswerRe: Interoperability: Form vs. Window Pin
ABitSmart22-May-09 3:53
ABitSmart22-May-09 3:53 
GeneralSilverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
SBJ21-May-09 11:48
SBJ21-May-09 11:48 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
Mark Salsbery22-May-09 6:12
Mark Salsbery22-May-09 6:12 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
SBJ22-May-09 6:48
SBJ22-May-09 6:48 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
Mark Salsbery22-May-09 7:04
Mark Salsbery22-May-09 7:04 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
SBJ22-May-09 7:41
SBJ22-May-09 7:41 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
Mark Salsbery22-May-09 8:07
Mark Salsbery22-May-09 8:07 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
SBJ22-May-09 10:32
SBJ22-May-09 10:32 
GeneralRe: Silverlight 2: Code: 4001. Category: ImageError. Message: AG_E_NETWORK_ERROR Pin
Mark Salsbery22-May-09 10:39
Mark Salsbery22-May-09 10:39 
QuestionM-V-VM implementation question Pin
ml_black21-May-09 9:48
ml_black21-May-09 9:48 
AnswerRe: M-V-VM implementation question Pin
Pete O'Hanlon21-May-09 10:33
mvePete O'Hanlon21-May-09 10:33 
GeneralRe: M-V-VM implementation question Pin
ml_black22-May-09 2:32
ml_black22-May-09 2:32 
GeneralRe: M-V-VM implementation question Pin
Pete O'Hanlon22-May-09 3:15
mvePete O'Hanlon22-May-09 3:15 
GeneralRe: M-V-VM implementation question Pin
ml_black22-May-09 4:14
ml_black22-May-09 4:14 
Questionprogramming html in wpf using c# Pin
ramakrishnamakkena21-May-09 2:40
ramakrishnamakkena21-May-09 2:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.