Asked by G Scott
at 2024-08-03 05:17:49
Point:500 Replies:2 POST_ID:828684USER_ID:11574
Topic:
Microsoft Visual Basic.Net;;
For a moment let's just pretend I know nothing about WPF. Let's say I have only started playing with WPF for about a week - for the sake of argument. Now, what's if I asked you what the WPF equivalent of this winforms code is:
My.forms.newForm.show()
My.forms.new.Form.TextBox1.Text = Me.TextBox1.Text
Me.Dispose()
We all know what that does. It takes whatever is in TextBox1 of the current form, opens the new form, and places that text into TextBox1 of the newForm. Simple. Really can't get any easier. I know this because I have been trying to do this exact thing in WPF.
Can someone please give me a clear sample of how you do this in WPF? I will not be offended if you talk to me as if I were a child :). Everything I read on this is usually in c#. Secondly, it's very convoluted with parameters and what not. Maybe it is that complex, but if I could be given a sample project that simply does this I think I would understand it better, but I have not found that link as of yet.
Thanks for any, and I mean ANY help on this.
My.forms.newForm.show()
My.forms.new.Form.TextBox1.Text = Me.TextBox1.Text
Me.Dispose()
We all know what that does. It takes whatever is in TextBox1 of the current form, opens the new form, and places that text into TextBox1 of the newForm. Simple. Really can't get any easier. I know this because I have been trying to do this exact thing in WPF.
Can someone please give me a clear sample of how you do this in WPF? I will not be offended if you talk to me as if I were a child :). Everything I read on this is usually in c#. Secondly, it's very convoluted with parameters and what not. Maybe it is that complex, but if I could be given a sample project that simply does this I think I would understand it better, but I have not found that link as of yet.
Thanks for any, and I mean ANY help on this.