Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Slashes around border of Label
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00824635
Message ID:
00824729
Views:
21
AFAIK there is no magic way to do it. Like VFP, you have to concatenate strings if you want to do that. The difference, of course, is that C# has no need for a continuation character, so;
String x = "this is a string on one line and this is" +
" a string on another line in code, but they" +
" will appear as one long sentence when run and x is displayed.";
Alan

>Here's what I've got so far:
>
>
>private void btnShowText_Click(object sender, System.EventArgs e)
>{
>	lblWelcome.Text = @"\\\\\\\\\\\\\\\\\\\\\\\\\" + "\n" + @"\\\Welcome to C#!" + @"\\\";
>	btnClearText.Enabled = true;
>	btnClearText.Focus();
>}
>
>
>Maybe you can advise me as to how you can carry on a string in code from one lien to the next. I'm not talking about what is displayed but how do I write a string and keep it within view on the code page so that I can see it all?
Previous
Reply
Map
View

Click here to load this message in the networking platform