Msgbox VB.Net 2003

Step by step instructions creating a msgbox vb.net

Page 1 of 1

2 Replies - 12983 Views - Last Post: 23 September 2006 - 10:47 AM Rate Topic: -----

#1 njspice  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 22-September 06

Msgbox VB.Net 2003

Posted 22 September 2006 - 11:16 PM

Step by Step instructions to create a msgbox in VB.NET 2003. I am a beginner and the text does not provide and information.
Is This A Good Question/Topic? 0
  • +

Replies To: Msgbox VB.Net 2003

#2 ersanjana  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 18-September 06

Re: Msgbox VB.Net 2003

Posted 22 September 2006 - 11:29 PM

it is very simple to create a msgbox in vb.net
code for display a string msg is:
msgbox("message u want to display")
like if u want to display a msg "help!"
then u have to write the code:
msgbox("help!")

if u want to print a result of any arithmatic operation then do not put "" .like if u want to print value of x(which is 10) where x=y+z
then code is:
msgbox(x)
this will display a msgbox and display value of x in msgbox


hope u are now able to create a msgbox

do u know anything about asp.net ?????
Was This Post Helpful? 0
  • +
  • -

#3 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 418
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: Msgbox VB.Net 2003

Posted 23 September 2006 - 10:47 AM

Quote

msgbox("message u want to display")


That is how you would do it in VB6. Although it will work in VB.NET, that is not the correct way to use a messagebox.

To use the proper syntax for VB.NET, you would use MessageBox.Show method which can be found at the following link.

http://msdn2.microso...gebox.show.aspx
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1