Help Useing Label control to display multiple calculations
I am just beginng VB and im working on a calculator applicantion that needs to display the result of multiple calculations all in one big text box and label what each result means. I cannot get anything to display in the box, could somebody please help me out here. Thank you.
Re: Help Useing Label control to display multiple calculations
The first thing you need to do is post your code. We can't help correct the errors f we can't see what you've done.
Re: Help Useing Label control to display multiple calculations
Code:
TextBox1.Text = "line 1" & Environment.NewLine
TextBox1.Text &= "line 2" & Environment.NewLine
TextBox1.Text &= "line 3"
Dim number As Integer = 42
Dim result As String = "The ultimate answer is " & Cstr(number)
TextBox1.Text &= Environment.NewLine & Environment.NewLine & result
Your TextBox should display this:
Quote:
line 1
line 2
line 3
The ultimate answer is 42
Re: Help Useing Label control to display multiple calculations
Quote:
Originally Posted by
.paul.
Code:
TextBox1.Text = "line 1" & Environment.NewLine
TextBox1.Text &= "line 2" & Environment.NewLine
TextBox1.Text &= "line 3"
Dim number As Integer = 42
Dim result As String = "The ultimate answer is " & Cstr(number)
TextBox1.Text &= Environment.NewLine & Environment.NewLine & result
Your TextBox should display this:
Thank you!! this is exactly what I needed!