Regarding text box control
Visual Basic
3
Posts
3
Posters
0
Views
1
Watching
-
how to print the variables in textbox rx: dim i as integer=10 dim j as integer=23 textboxbox1.text=(i,j) if i give like this it show error what is the result
-
how to print the variables in textbox rx: dim i as integer=10 dim j as integer=23 textboxbox1.text=(i,j) if i give like this it show error what is the result
What are you trying to get by printing (i,j)? Do you want the .Text property of the TextBox to be "(10,23)"? If so, you need to take the .ToString method of both integers and print that instead. Try this:
Dim i As Integer = 10 Dim j As Integer = 23 TextBox1.Text = "(" & i.ToString & "," & j.ToString ")"
That should do it for you.Jonathan Sampson www.SampsonResume.com