3 Replies - 4212 Views - Last Post: 07 March 2011 - 03:17 PM Rate Topic: -----

#1 obliviate  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 25-February 11

Messagebox.show and Msgbox,, what's the difference?

Posted 07 March 2011 - 08:21 AM

My converter shows the answer using the message box..

i want to have a icon on the message box and a title at this top bar..

my code is this:

 MessageBox.Show((number * multiplier), vbInformation, "Answer").ToString()



i used that because it was stated in a vb.net tutorial website...
but when i check it again, it states that MSGBOX not MESSAGEBOX.show

what's the difference within the two??
i cannot used msgbox for showing the answer and i don't know why..

what's the code for the messagebox.show to have a icon or a sign??


pls reply.. thanks :))

Is This A Good Question/Topic? 0
  • +

Replies To: Messagebox.show and Msgbox,, what's the difference?

#2 3P1C_F@!l  Icon User is offline

  • D.I.C Head

Reputation: 8
  • View blog
  • Posts: 98
  • Joined: 01-March 11

Re: Messagebox.show and Msgbox,, what's the difference?

Posted 07 March 2011 - 08:40 AM

Not really sure what you are trying to do here..

MessageBox.Show((number * multiplier), vbInformation, "Answer").ToString()


What is (number * multiplier)??

Proper syntax for MessageBox.Show..

MessageBox.Show("body text", "title text", _ MessageBoxButtons.OKCancel, MessageBoxIcon.Hand, _        
MessageBoxDefaultButton.Button1, MessageBoxOptions.RightAlign, _ True)


This post has been edited by 3P1C_F@!l: 07 March 2011 - 08:41 AM

Was This Post Helpful? 0
  • +
  • -

#3 demausdauth  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 179
  • View blog
  • Posts: 655
  • Joined: 03-February 10

Re: Messagebox.show and Msgbox,, what's the difference?

Posted 07 March 2011 - 09:54 AM

MsgBox() calls the MessageBox.Show() methods so really if you are using MsgBox you are decreasing performance (however slight it is).

Good explanation MsgBox vs MessageBox
Was This Post Helpful? 0
  • +
  • -

#4 AdamSpeight2008  Icon User is offline

  • MrCupOfT
  • member icon


Reputation: 2267
  • View blog
  • Posts: 9,480
  • Joined: 29-May 08

Re: Messagebox.show and Msgbox,, what's the difference?

Posted 07 March 2011 - 03:17 PM

MsgBox is from the vb6 era, it's only in vb.net for compatibly. Don't rely on it always being there though, use MessageBox
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1