I hope it's the right forum to post this kind of question (if not - a
direction would be greatly appreciated anyway).

And i bet it's a very newbe querie too.
So, i've done my bit in VBA and i'm used to reference controls via
object (container) that the controls are put on, e.g., if on a Form1
is a TextBox1 i could go:

Form1.TextBox1.Text = "My Text"

But when i try doing similar thing on WPF Browser Application (using
Visual Studio 2008 Express) I don't seem to be able to do that
for .xaml pages - if i try:

Page1.TextBox1.Text = "My Text"

it doesn't work, i.e., after putting the dot '.' after the object
(Page1) it does not let me to reference any controls on that page.
Even if i go via the Grid - this Page1.Grid1 doesn't work either.
Obviously it does let me do:

Me.TextBox1.Text = "My Text"

but i need to reference controls on one page from another page/form
(i.e., not using the 'Me.') and I struggle to find the way to do it.
How one is supposed to be referncing controls from one page/form to
another page/form in VS 2008 Express (or VB.Net for that matter)?

Any help would be great!

Thanks,

Reply via email to