J
jimscott77
Can someone help with the following problem?
Original Question:
TextBox1 is bound to a dataset and at runtime shows a value of "5"
I am trying to use that value as follows:
TextBoxA.Text = TextBox1.Text
The result that I'd expect is that TextBoxA.Text would equal 5.
The result that I get is that TextBoxA.Text equals "", or wit a
Val(function) it equals 0.
How do I get TextBoxA to equal 5?
Update:
I actually have three such values that I am trying to use and am having
the same problem on all 3.
At runtime
TextBox1.Text shows a value of 5 but has a value of ""
TextBox2.Text shows a value of 18 but has a value of ""
TextBox3.Text shows a value of 24 but has a value of ""
However:
If I change the value in any one (not all three) of the textboxes then
the values of all the textboxes are updated.
When I change the value in TextBox1 to 6 then
TextBox1.Text shows a value of 6 and has a value of 6
TextBox2.Text shows a value of 18 but has a value of 18
TextBox3.Text shows a value of 24 but has a value of 24
(I am testing this by having the values of 3 other textboxes reflect
the values of TextBox1, 2, & 3)
How do I get the values to reflect what is shown without changing one
of the original values?
Thanks again,
Jim (the beginner)
I am using Visual Basic in Visual Studio.Net
Original Question:
TextBox1 is bound to a dataset and at runtime shows a value of "5"
I am trying to use that value as follows:
TextBoxA.Text = TextBox1.Text
The result that I'd expect is that TextBoxA.Text would equal 5.
The result that I get is that TextBoxA.Text equals "", or wit a
Val(function) it equals 0.
How do I get TextBoxA to equal 5?
Update:
I actually have three such values that I am trying to use and am having
the same problem on all 3.
At runtime
TextBox1.Text shows a value of 5 but has a value of ""
TextBox2.Text shows a value of 18 but has a value of ""
TextBox3.Text shows a value of 24 but has a value of ""
However:
If I change the value in any one (not all three) of the textboxes then
the values of all the textboxes are updated.
When I change the value in TextBox1 to 6 then
TextBox1.Text shows a value of 6 and has a value of 6
TextBox2.Text shows a value of 18 but has a value of 18
TextBox3.Text shows a value of 24 but has a value of 24
(I am testing this by having the values of 3 other textboxes reflect
the values of TextBox1, 2, & 3)
How do I get the values to reflect what is shown without changing one
of the original values?
Thanks again,
Jim (the beginner)
I am using Visual Basic in Visual Studio.Net