Re: VB.NET separate lines?

  • From: "tribble" <lauraeaves@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Sat, 6 Sep 2008 08:19:49 -0500

you mean html to insert a simple line break? Try <br>
You may need extra code to be sure the indentation of each line is right. (I 
assume you want all the lines indented the same.)
HTH
--le

----- Original Message ----- 
From: "Buddy W." <wurmlord@xxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Friday, September 05, 2008 5:37 PM
Subject: VB.NET separate lines?


Hello,

I am just starting my studies in VB.NET and have a question.  I want to
display four different lines in my message label.  For example, lets say
that when you click a button four lines of lyrics to a song are displayed.
How do I get each line to appear as it's own line.  Right now I have added a
bunch of spaces to force each separate line to occur.

This example of my code might help you understand what I am talking about:

Private Sub metallicaButton_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles metallicaButton.Click
  messageLabel.Text = "Now that the war is through with me Im waking up I
can not see That there is not much left of me Nothing is real but pain now."

I want it appear like this:

Now that the world is through with me.
I'm waking up, I can not see,
That there is not much left of me.
Nothing is real but pain now.

Is there a control to create a line break and use autosizing for the label,
or an easier way than just adding all those spaces?  My code looks like a
mess.  Any help or advice is greatly appreciated.

Thanks,
Buddy
"Self is the only prison that can ever bind the soul." -- Henry Van Dyke


__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: