Solved

MessageBox in VB 2005

Posted on 2007-04-04
4
800 Views
Last Modified: 2008-02-01
In VB6, to show a message box, I used to use this code:

MsgBox ("Hello World!")

I see in VB 2005 there is another message box which can be called like this:

MessageBox.Show ("Hellow World")

Which one should I be using in VB 2005?
0
Comment
Question by:SETP
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 67

Accepted Solution

by:
sirbounty earned 200 total points
ID: 18849415
The 2nd one is the .Net version
There's still support for the first, but if you're trying to move towards .Net, use Messagebox...
0
 
LVL 18

Assisted Solution

by:Sethi
Sethi earned 150 total points
ID: 18849544
I agree. There are many other backward compatible codes existing in VB 2005 just to ease the migration pain VB6 developers face while migrating their code from Vb6 to VB 2005. You should try to stick to .Net version of same functionality as that will be little faster.
0
 
LVL 86

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 150 total points
ID: 18851720
Just FYI...I have seen posts where the use of the older MsgBox caused unforeseen side effects such as focus issues and/or not appearing "in front".

0
 

Author Comment

by:SETP
ID: 18857660
Thanks guys
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question