PDA

Click to See Complete Forum and Search --> : WPF and Windows Form Questions


rpc86
Aug 18th, 2009, 02:25 AM
Hi guys,

This is just my first time to create WPF as an exercise. I use C# in Visual Studio 2008.

I have a Windows Form that hosts my User Control (WPF). On the WPF I have a button named "Cancel". I want my WPF be closed from my windows form when I click the Cancel button, but there is no such thing as wpf.close(); or wpf.disposed(); found on the properties/methods. How will I do this?

I saw another website that shows Windows Form (WPF) and User Control (WPF) when adding new items. Mine is only User Control (WPF). What is the difference between the two?

How will I work on get{} and set{} in WPF in referencing members to the windows form?

Please help.

Thank you.

VisualBasicN00B
Aug 18th, 2009, 03:12 AM
I've got a similar question about WPF and Windows Forms. (also just playing around with WPF)

I've got 2 projects in my Solution. The main project is the Windows Forms Application. And the other project is a WPF Window i created.

I got the layout i want for my WPF Window sorted. But the information i need displayed on the WPF Window is from the Windows Forms Application. And the information is always changing.

My question is, how do i get my WPF Window to display that information? How do i get my WPF Window(and controls) to read those values from the Windows Forms Application and assign it?

Thanks,
VBN00B

VisualBasicN00B
Aug 18th, 2009, 05:14 AM
I've got a similar question about WPF and Windows Forms. (also just playing around with WPF)

I've got 2 projects in my Solution. The main project is the Windows Forms Application. And the other project is a WPF Window i created.

I got the layout i want for my WPF Window sorted. But the information i need displayed on the WPF Window is from the Windows Forms Application. And the information is always changing.

My question is, how do i get my WPF Window to display that information? How do i get my WPF Window(and controls) to read those values from the Windows Forms Application and assign it?

Thanks,
VBN00B

Nevermind i figured it out myself :)