MessageBox.show

Creating New line

Page 1 of 1

2 Replies - 5423 Views - Last Post: 30 March 2010 - 04:29 AM Rate Topic: -----

#1 velaphi  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 55
  • Joined: 20-July 08

MessageBox.show

Posted 30 March 2010 - 04:08 AM

i would like to create a new line in my Message Box, i would like it to appear like this

New Read Number must be greater than Zero
OR Make sure ther's a data in both input boxes


Quote

strMessage = "New Read Number must be greater than Zero, OR Make sure there's data both input boxes"

MessageBox.Show(strMessage, "Data Entry Error", MessageBoxButtons.OK, MessageBoxIcon.Error)


Is This A Good Question/Topic? 0
  • +

Replies To: MessageBox.show

#2 CharlieMay  Icon User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1605
  • View blog
  • Posts: 5,162
  • Joined: 25-September 09

Re: MessageBox.show

Posted 30 March 2010 - 04:15 AM

Use environment.Newline to create a line break.
strMessage = "New Read Number must be greater than Zero," & environment.newline &  "OR Make sure there's data both input boxes"

Was This Post Helpful? 0
  • +
  • -

#3 velaphi  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 55
  • Joined: 20-July 08

Re: MessageBox.show

Posted 30 March 2010 - 04:29 AM

Thank you it works perfect
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1