473,406 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

What is the Difference between MsgBox & MessageBox.Show

Can Any one explain me what is the Difference between MsgBox and
MessageBox.Show... In VB6 i used MsgBox, So Can I Say "MessageBox.Show" is
the new version of MsgBoz which belongs to C# or VB
--
Peter...
Nov 21 '05 #1
4 9855
"Prabhudhas Peter" <Pr*************@discussions.microsoft.com> schrieb:
Can Any one explain me what is the Difference between MsgBox and
MessageBox.Show... In VB6 i used MsgBox, So Can I Say "MessageBox.Show" is
the new version of MsgBoz which belongs to C# or VB

'MsgBox' is part of "Microsoft.VisualBasic.dll". The use of this library is
encourages in VB.NET projects. 'MessageBox', on the other hand, is part of
the .NET Framework's class library and is intended for use in all
..NET-enabled programming languages. When developing in VB.NET I prefer
'MsgBox' over 'MessageBox.Show' because it's IMO more handy.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
Thank you Herfried K. Wagner,

OK you are saying that, it better to use MsgBox while using VB.net. right?
then what does "IMO" mean?

--
Peter...
"Herfried K. Wagner [MVP]" wrote:
"Prabhudhas Peter" <Pr*************@discussions.microsoft.com> schrieb:
Can Any one explain me what is the Difference between MsgBox and
MessageBox.Show... In VB6 i used MsgBox, So Can I Say "MessageBox.Show" is
the new version of MsgBoz which belongs to C# or VB

'MsgBox' is part of "Microsoft.VisualBasic.dll". The use of this library is
encourages in VB.NET projects. 'MessageBox', on the other hand, is part of
the .NET Framework's class library and is intended for use in all
..NET-enabled programming languages. When developing in VB.NET I prefer
'MsgBox' over 'MessageBox.Show' because it's IMO more handy.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
"Prabhudhas Peter" <Pr*************@discussions.microsoft.com> schrieb:
OK you are saying that, it better to use MsgBox while using VB.net. right?
then what does "IMO" mean?


"IMO" = "In my opinion". Yes, personally I prefer 'MsgBox' because of its
shortness.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4
Thank you Herfried.
--
Peter...
"Herfried K. Wagner [MVP]" wrote:
"Prabhudhas Peter" <Pr*************@discussions.microsoft.com> schrieb:
OK you are saying that, it better to use MsgBox while using VB.net. right?
then what does "IMO" mean?


"IMO" = "In my opinion". Yes, personally I prefer 'MsgBox' because of its
shortness.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: | last post by:
I have been learning really hard to understand this .NET security thing, but I still get overwhelmed with the abstractness. The hardest part is to understand *when* you get an SecurityException and...
2
by: A.M | last post by:
Hi, It seems C# has MsgBox function in different allias name. How can i call VB.NET MsgBox from C# ? Thanks, Ali
14
by: Ant | last post by:
Hello, I'm a newbie to C#. Does it have a Msgbox function like VB6 i.e. MsgBox "Hello World". What is the equivelant function? Does it have one? Thanks for your time on this simple question
7
by: Anne Richmond | last post by:
I have just returned to my first vb.net project after a few weeks and find I have a problem with Msgbox. The commands I added earlier work OK but any new ones fail to show the prompt value...
6
by: RML | last post by:
Hi all, I have a VB.NET app which contains 1 form. The form starts a thread which does some processing based on what the user is doing on the form. My problem is, the thread can display a MsgBox...
12
by: bokiteam | last post by:
Hi All, I dont' know why I can not pop up a message box. MsgBox("test") it is ok in vb6... Best regards, Boki.
10
by: Betina Andersen | last post by:
I have inherited a VB.NET dll that I am using from common asp. My problem is to get the messages from the dll to the Ie client, I can see the messages in the Eventlog on the IIS server so I know...
3
by: Adam Sandler | last post by:
Hello, I'm converting this code from VB: Try With serialPort ' snip End With Catch ex As Exception MsgBox(ex.ToString)
1
by: COHENMARVIN | last post by:
I'm a VB programmer, learning C#. How does one do the equivalent of a "msgbox" (from Visual Basic) in C#? Is there something like this: System.Forms.MessageBox("Hello World"); Thanks, Marvin
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.