Lbl_output1.Text = Result1
Lbl_ouput2.Text = Result2
Dim intcounter As Integer = 1
If Cbx_Squared.CheckState = CheckState.Checked Then
Do Until intcounter = 11
Txt_ouput.Text = (intcounter * intcounter)
Txt_ouput.Text += Environment.NewLine
intcounter = intcounter + 1
Loop
End If
I'm trying to get it so that each time the loop resolves it puts the value onto a new line of the text box, the output simply being the squared number of 1-10 on different lines. I have tried + vbcrlf and + environment.newline after the intcounter * intcounter, getting the error cannot convert from string to double. This currently has no errors but only outputs 100 on the first line.
Thank you.

New Topic/Question
Reply



MultiQuote





|