MrWizo MrWizo - 5 months ago 45
C# Question

Fill Line with hyphens

i'm trying to fill one line of my label with hyphens. Here's what i got right now. what is the function that i can use to fill the next line without manually typing out all the hyphens?

lblResumé.Text = intNbrTotTut.ToString() + str1erePhrase + Environment.NewLine

Answer Source
string myString = "Test" + Environment.NewLine + "Test2" +Environment.NewLine;
label1.Text = myString.Replace(System.Environment.NewLine, "_");
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download