|
-
Aug 18th, 2009, 02:25 AM
#1
Thread Starter
Addicted Member
WPF and Windows Form Questions
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.
-
Aug 18th, 2009, 03:12 AM
#2
New Member
Re: WPF and Windows Form Questions
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
-
Aug 18th, 2009, 05:14 AM
#3
New Member
Re: WPF and Windows Form Questions
 Originally Posted by VisualBasicN00B
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|