B
Bryan
Lets say I have a form From1, and I add a text box to it, TextBox1, in
the VS2005 form designer. I set the 'Text' property of TextBox1 to
"Original" using the properties dialog box in the form designer.
Consider the following code that runs on the loading of the form
dim txt as new TextBox
txt.Text = "changed"
Me.TextBox1 = txt
I was thinking that when I open the form the text in the textbox would
read "changed", but it still reads "original". Why does this not work?
I wan't to be able to create an object at runtime, then set a control
that I created at designtime equal to the runtime version.
the VS2005 form designer. I set the 'Text' property of TextBox1 to
"Original" using the properties dialog box in the form designer.
Consider the following code that runs on the loading of the form
dim txt as new TextBox
txt.Text = "changed"
Me.TextBox1 = txt
I was thinking that when I open the form the text in the textbox would
read "changed", but it still reads "original". Why does this not work?
I wan't to be able to create an object at runtime, then set a control
that I created at designtime equal to the runtime version.