using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes;
namespace WpfApplication1 { /// /// Interaction logic for Window2.xaml /// public partial class Window2 : Window { public Window2() { InitializeComponent(); }
private void button13_Click(object sender, RoutedEventArgs e) { Window1 form1 = new Window1(); form1.textBox1.Text = textBox1.Text; form1.Show();//This is the problem Close(); } } }
in method button13_Click when I click button13(Enter) when it running, how to pass the textbox.text in Window2 to Window1 without call Window1 again or form1.Show(). so i only have two form is running not three.
please help.........
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
duant stpPosted Nov 4, 2010, 2:05 AM
i have checked it before, but i can't find the solution for ma problem....
do you have another Idea?
Suthish NairPosted Nov 4, 2010, 12:19 AM
Some the articles will help you out..