Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Alright I am making a constitution day program thing for school and I need to make multiple lines of the text that I am putting in a messagebox.show command. Does anyone know an easy way to do this or a way to do it at all, my teacher doesnt even know how. So any help would be appreciated! :D
Posted

First off welcome.

 

Let me know if I am reading this correct or not.

You want to have multiply line of text in a message box?

 

If so this is what I use

 

MessageBox.Show("First Line" & Chr(10) & _
               "Second Line" & Chr(10) & _
               "Third Line" & Chr(10) &
               "Forth Line", _
               "Title", MessageBoxButtons.OK, MessageBoxIcon.Error)

 

The Chr(10) basic starts a new line.

 

Hope this helps

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

-- Rick Cook, The Wizardry Compiled

Posted

Thanks for that thenerd.

 

I knew that there was a better way (.Net way) of doing it I just could remember what it was.

 

or Environment.newline

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

-- Rick Cook, The Wizardry Compiled

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...