|
-
October 20th, 2011, 12:17 AM
#1
Assign numeric values to Textboxes
Beginner question:
I want to do some math during runtime and assign the result to a textbox.
I'm having TYPE problems.
For example:
double dValue1;
double dValue2;
txtMyTexBox.Text = dValue1 * dValue2 / 4.67;
Now I know you can't do this because the textbox is expecting a String. I'm just not sure how to do this correctly.
This doesn't work:
txtMyTexBox.Text = (string)(dValue1 * dValue2 / 4.67);
I'm still at the "Hello World" stage in C sharp coming from a VB6 background.
Help?
thx.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|