lblanswer.caption = txtname & " you are " & txtage & "!"
but I do this in .Net
lblanswer.text = txtname & " you are " & txtage & "!"
Then it says & is an error! What's the problem, and is it an real error, and if so what can I do to do that? Do I need to delcare the text boxes as strings?
Question
Slane
OK in Visual Basic 6 you can do this:
lblanswer.caption = txtname & " you are " & txtage & "!"
but I do this in .Net
lblanswer.text = txtname & " you are " & txtage & "!"
Then it says & is an error! What's the problem, and is it an real error, and if so what can I do to do that? Do I need to delcare the text boxes as strings?
Link to comment
Share on other sites
9 answers to this question
Recommended Posts