In VB6 and earlier if you wanted to have your program change the caption of a label you would code something like this:
The above code would create a label message on two lines as follows:
Now this doesn't work in VB.net. (I know that .caption is replaced with .text). VB.net completely ignores the Chr() keyword. Does anyone else know how the above can be done now?
dim L,L1,L2 as string L1 = "Hello There!" L2 = "I am Paul." L = L1 & Chr(13) & Chr(13) & L2 lblMyLabel.Caption = L
Hello There! I am Paul.