473,386 Members | 1,908 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,386 software developers and data experts.

MsgBox("test") no msg box?

Hi All,

I dont' know why I can not pop up a message box.

MsgBox("test")

it is ok in vb6...

Best regards,
Boki.

Jan 18 '06 #1
12 4981
Boki,

try this

Private Sub button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles button1.Click

Messagebox.Show("Hello, World")

End Sub

<bo******@ms21.hinet.net> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
Hi All,

I dont' know why I can not pop up a message box.

MsgBox("test")

it is ok in vb6...

Best regards,
Boki.

Jan 18 '06 #2
Got it, thanks a lot. :)

Best regards,
Boki.

Jan 18 '06 #3
Boki,

MsgBox("test") works for me

Although I never use it, I use messagebox.show

I have no reason for that, it are more charachters so mostly I use the
shorter one.

I hope this helps,

Cor
Jan 18 '06 #4
<bo******@ms21.hinet.net> schrieb:
I dont' know why I can not pop up a message box.

MsgBox("test")

it is ok in vb6...


It should work in VB.NET too. Where are you calling 'MsgBox'?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Jan 18 '06 #5
It should work. Always indicates what happens instead of just syaing it
doesn't work.

This is in the MicroftVisualBasic namespcae. I velive you din"t have a
reference to this making tuhis function unklnown...

--

<bo******@ms21.hinet.net> a écrit dans le message de
news:11**********************@g47g2000cwa.googlegr oups.com...
Hi All,

I dont' know why I can not pop up a message box.

MsgBox("test")

it is ok in vb6...

Best regards,
Boki.

Jan 18 '06 #6
ZR

Msgbox is an old syntax - it works in VB.NET 2003 if you have
Microsoft.VisualBasic imported, but merely for compatibility reasons and may
not be supported in future versions.
Messagebox.Show is the correct VB.NET syntax that people should use.
Jan 18 '06 #7
"ZR" <zd***********@zio.hr> schrieb:
Msgbox is an old syntax - it works in VB.NET 2003 if you have
Microsoft.VisualBasic imported, but merely for compatibility reasons and
may not be supported in future versions.
Messagebox.Show is the correct VB.NET syntax that people should use.


Sorry, but that's complete nonsense. "Microsoft.VisualBasic.dll" is not the
Visual Basic Compatibility Library
("Microsoft.VisualBasic.Compatibility.dll"). It's part of Visual Basic .NET
and there are no public plans to remove this library, as parts of it are
strongly tied to the Visual Basic .NET programming language. Using
"Microsoft.VisualBasic.dll" is perfectly legitimate in VB.NET.

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

Jan 18 '06 #8
ZR
I was commenting the possible removal of Msgbox, NOT the removal of the
actual library where it is placed - now I see that wasn't very clear in my
previous post.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Ok****************@tk2msftngp13.phx.gbl...
"ZR" <zd***********@zio.hr> schrieb:
Msgbox is an old syntax - it works in VB.NET 2003 if you have
Microsoft.VisualBasic imported, but merely for compatibility reasons and
may not be supported in future versions.
Messagebox.Show is the correct VB.NET syntax that people should use.


Sorry, but that's complete nonsense. "Microsoft.VisualBasic.dll" is not
the Visual Basic Compatibility Library
("Microsoft.VisualBasic.Compatibility.dll"). It's part of Visual Basic
.NET and there are no public plans to remove this library, as parts of it
are strongly tied to the Visual Basic .NET programming language. Using
"Microsoft.VisualBasic.dll" is perfectly legitimate in VB.NET.

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

Jan 19 '06 #9
"ZR" <zd***********@zio.hr> schrieb:
I was commenting the possible removal of Msgbox, NOT the removal of the
actual library where it is placed - now I see that wasn't very clear in my
previous post.


Well, I cannot think of any reason why 'MsgBox' should be removed. It's not
part of the compatibility library. 'MsgBox' exists even longer than
'MessageBox.Show', and I believe it will stay longer than 'MessageBox.Show'
because it's not tied to a certain technology. Technologies fade, languages
(should) persist.

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

Jan 19 '06 #10
ZR
I don't work for Microsoft so I can't guarantee that my theory is correct
:-)
But I don't see a point in introducing new syntax with .NET if they don't
plan to remove the old
snytax (which does the same thing) sooner or later - perhaps they won't
remove VB6 leftover
functions like MsgBox, only won't "recommend" using them (whatever that
would mean)

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
"ZR" <zd***********@zio.hr> schrieb:
I was commenting the possible removal of Msgbox, NOT the removal of the
actual library where it is placed - now I see that wasn't very clear in my
previous post.


Well, I cannot think of any reason why 'MsgBox' should be removed. It's
not part of the compatibility library. 'MsgBox' exists even longer than
'MessageBox.Show', and I believe it will stay longer than
'MessageBox.Show' because it's not tied to a certain technology.
Technologies fade, languages (should) persist.

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

Jan 20 '06 #11
ZR
I don't work for Microsoft so I can't guarantee that my theory is correct
:-)
But I don't see a point in introducing new syntax with .NET if they don't
plan to remove the old
snytax (which does the same thing) sooner or later - perhaps they won't
remove VB6 leftover


We have not seen any official information if either messagebox.show or
msgbox will be replaced.

There is as well not given any information, if both will stay or both in
future will completely be replaced by another class.

Even if it is as you write, than they probably will be directly converted to
what is needed in the version upgrade part.

Therefore all what you have read about this or think is just guessing in the
same way as that Saint Nicolas is retiring in future and will be replaced by
Saint John.

However we have seen a lot of this guessing here.

I hope this gives an idea.

Cor
Jan 20 '06 #12
"ZR" <zd***********@zio.hr> schrieb:
I don't work for Microsoft so I can't guarantee that my theory is correct
:-)
But I don't see a point in introducing new syntax with .NET if they don't
plan to remove the old
snytax (which does the same thing) sooner or later - perhaps they won't
remove VB6 leftover
functions like MsgBox, only won't "recommend" using them (whatever that
would mean)


I don't think these functions are leftover functions. Would you consider
C#'s and VB.NET's syntax as "leftover" syntax of C, Java, and VB6? Why not
just use IL assembler for development? It's the only .NET programming
language that doesn't suffer from the "leftover" thingy. The intention and
benefit of .NET is not that code looks the same in all .NET programming
languages. If this was the goal, there would only be IL assembler or a more
high-level programming language available. The main point of .NET is
interoperability of components developed using different .NET-enabled
programming languages. It doesn't matter whether or not you are using
'MsgBox' or 'MessageBox' instead. It matters that you are using managed
code with all of its benefits.

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

Jan 20 '06 #13

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

Similar topics

8
by: Chris Markle | last post by:
When JavaScript writes out a dialogue box (like when confirm() is called) the header or title of that dialogue box shows up as "JavaScript Application"... Can this title be changed so that maybe...
4
by: amywolfie | last post by:
I would like to put code behind a Find button on a form which: 1) Performs a find based on a field on the form 2) If NO RECORDS ARE FOUND, then displays a custom "No Records Found" message box. ...
6
by: Don Leverton | last post by:
Hi All, I've got a situation where I am developing an Access 97 app for a client, and am in the "beta testing" stage. I have split the app up, using the DB splitter, into front-end /back-end...
32
by: Indrid Colt | last post by:
Thank's for your help ! Indrid
10
by: Eric G. Harrison | last post by:
We have a project with many other projects referenced (all of which are referenced at the project level and are included in the solution). Frequenly, if we make a change in project A (such as adding...
9
by: axs221 | last post by:
I am trying to move some of our large VBA Access front-end file into ActiveX DLL files. I created two DLL files so far, one was a module that contains code to integrate into the QuickBooks...
4
by: ApexData | last post by:
Is it acceptable to use a colon ":" to seperate statements in VBA? strVar1 = "A": lngVar2 = 0: blnVar3 = True Msgbox strVar1: Msgbox lngVar2: Msgbox blnVar3 Thanks Greg
13
lee123
by: lee123 | last post by:
I have a form I have been working on and now I am almost done with it but there is just one thing I need to finish it that I can figure out. Well I have a questionnaire form with 50 questions and I...
16
by: g diddy | last post by:
Hi, I have used the Docmd.outputto function in various places in my code but for some reason all code that comes afterwards, even msgbox doesn't show. I was just wondering if there is anything that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.