Add "Name" to the textbox...
<TextBox Name="myTextBox" Text="Some Text"/>
then inside code behind...
myTextBox.Text = "Changed text"
I advice you to look some introductory WPF articles so that you do things the right way instead of the winforms way.
Software Engineer 1, My Blog
Thanks for your reply.
To be more specific, here is the TextBox in the XAML
<Window x:Class="Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1"
Height="452"
Width="502"
xmlns:my="http://schemas.microsoft.com/wpf/2008/toolkit"
Name="Window1">
<Grid>
<TextBox Height="18"
Name="TextBox1"
Width="100" Text="Hello" />
</Grid>
</Window>
Here is what I was thinking would work
Module LoadData
Sub TryingToChangeTextInTextBox()
window1.TextBox1.Text = "Changed"
End Sub
End Module
When I try Window1 followed by the dot operator I get nothing.
KSG