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

Display message box

What code would I use for displaying a message box in VB.NET
Nov 20 '05 #1
14 10151
Cor
Hi A.A. Fussy

messagebox.show("hello here am I")

Cor
Nov 20 '05 #2
"A.A. Fussy" <am****@austarnet.com.au> schrieb
What code would I use for displaying a message box in VB.NET


Msgbox "Msgbox"

or

Messagebox.Show "Messagebox.Show"
--
Armin

Nov 20 '05 #3
* "Armin Zingler" <az*******@freenet.de> scripsit:
What code would I use for displaying a message box in VB.NET


Msgbox "Msgbox"

or

Messagebox.Show "Messagebox.Show"


I would use "(" and ")".

;-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schrieb
* "Armin Zingler" <az*******@freenet.de> scripsit:
What code would I use for displaying a message box in VB.NET


Msgbox "Msgbox"

or

Messagebox.Show "Messagebox.Show"


I would use "(" and ")".

;-)


They appear automatically. :)
--
Armin

Nov 20 '05 #5
Cor
Herfried,

Msgbox "Msgbox"

or

Messagebox.Show "Messagebox.Show"


I would use "(" and ")".


Better is "AndAlso"

:-)

Cor
Nov 20 '05 #6
There has been much already said about whether to use old VB 6.0 functions
like MsgBox() or the new .NET classes like MessageBox.Show.

My opinion is to stay away from the older VB 6.0 ways and adopt the newer
(OO) .NET ways. Yes, either will work, but MsgBox() is just going to put in
a call to the shared show method of the MessageBox class, so why not skip an
extra step and go straight into the MessageBox class. There are several
other situations like this in VB.NET.

For example, many of the "old" string functions are now methods of the
string class and many "old" numeric functions are now methods of the number
type classes. The same is also true for "old" date/time functions now being
methods of the date/time classes.
"Armin Zingler" <az*******@freenet.de> wrote in message
news:OZ**************@TK2MSFTNGP10.phx.gbl...
"A.A. Fussy" <am****@austarnet.com.au> schrieb
What code would I use for displaying a message box in VB.NET


Msgbox "Msgbox"

or

Messagebox.Show "Messagebox.Show"
--
Armin

Nov 20 '05 #7
* "Cor" <no*@non.com> scripsit:
Messagebox.Show "Messagebox.Show"


I would use "(" and ")".


Better is "AndAlso"


AndAlso ROFL.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #8
* "Armin Zingler" <az*******@freenet.de> scripsit:
I would use "(" and ")".

;-)


They appear automatically. :)


Somebody told me that some people are out there who don't use an IDE to
develop their applications.

;-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #9
"Scott M." <s-***@badspamsnet.net> schrieb
There has been much already said about whether to use old VB 6.0
functions like MsgBox() or the new .NET classes like
MessageBox.Show.

My opinion is to stay away from the older VB 6.0 ways and adopt the
newer (OO) .NET ways. Yes, either will work, but MsgBox() is just
going to put in a call to the shared show method of the MessageBox
class, so why not skip an extra step and go straight into the
MessageBox class. There are several other situations like this in
VB.NET.

For example, many of the "old" string functions are now methods of
the string class and many "old" numeric functions are now methods of
the number type classes. The same is also true for "old" date/time
functions now being methods of the date/time classes.


I know. But Msgbox is shorter.
--
Armin

Nov 20 '05 #10
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schrieb
* "Armin Zingler" <az*******@freenet.de> scripsit:
I would use "(" and ")".

;-)


They appear automatically. :)


Somebody told me that some people are out there who don't use an IDE
to develop their applications.

;-)

Not my problem. :)
--
Armin

Nov 20 '05 #11
On Thu, 16 Oct 2003 23:20:03 +0200, Cor wrote:

Herfried,

Msgbox "Msgbox"

or

Messagebox.Show "Messagebox.Show"


I would use "(" and ")".


Better is "AndAlso"


You want a nice IDE you do. Your "is" would have been nicely
converted to its correct form "Is" <g>

--
Rick
Reply to dev@ to avoid spam trap
Nov 20 '05 #12
* "Armin Zingler" <az*******@freenet.de> scripsit:
They appear automatically. :)


Somebody told me that some people are out there who don't use an IDE
to develop their applications.

;-)

Not my problem. :)


Maybe you can add a hint in your signature?

;-)))

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #13
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schrieb
Somebody told me that some people are out there who don't use an
IDE to develop their applications.

;-)

Not my problem. :)


Maybe you can add a hint in your signature?

;-)))


I could, but I'm now saving my "by call traffic" bytes. ;-)
--
Armin

Nov 20 '05 #14
Ok Armin, I can't argue with that! ;-)
"Armin Zingler" <az*******@freenet.de> wrote in message
news:u1*************@TK2MSFTNGP10.phx.gbl...
"Scott M." <s-***@badspamsnet.net> schrieb
There has been much already said about whether to use old VB 6.0
functions like MsgBox() or the new .NET classes like
MessageBox.Show.

My opinion is to stay away from the older VB 6.0 ways and adopt the
newer (OO) .NET ways. Yes, either will work, but MsgBox() is just
going to put in a call to the shared show method of the MessageBox
class, so why not skip an extra step and go straight into the
MessageBox class. There are several other situations like this in
VB.NET.

For example, many of the "old" string functions are now methods of
the string class and many "old" numeric functions are now methods of
the number type classes. The same is also true for "old" date/time
functions now being methods of the date/time classes.


I know. But Msgbox is shorter.
--
Armin

Nov 20 '05 #15

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

Similar topics

6
by: Bob Lin | last post by:
I would like to display the hostname (or computername) and username (or logonID) on our Intranet support page. I saved the following vbs code as asp file, but it doesn't display the username. No...
13
by: Dan R Brown | last post by:
I have a large form that is generated dynamically in a jsp using xml / xslt. So, to break up this form into several "tabbed" sections, I break up the form using <div> tags. Each <div...
1
by: Alex Li | last post by:
Dear js/xmlhttp experts, I spent hours but could not solve this problem and hope someone could give me a clue: a onclick event will invoke a function to do a few things: 1. make a hidden DIV...
7
by: DavidM | last post by:
Hello -- I would like to display a different logo on my website for different seasons of the month. I currently have a logo for Halloween, Thanksgiving, and December. Can someone tell me what...
19
by: dmiller23462 | last post by:
Hi guys....I have absolutely NO IDEA what I'm doing with Javascript but my end result is I need two text boxes to stay hidden until a particular option is selected....I've cobbled together the...
18
by: Alpha | last post by:
Hi, I'm working on a Windows applicaton with VS 2003 on windows 2000. I have a listbox that I have binded to a dataset table, "source" which has 3 columns. I would like to display 2 of those...
13
by: Benjamin Smith | last post by:
I am controlling the display status of a table row using the following code. <TR id="CCRow" style="DISPLAY:none"> Instead of hard coding "none" above, I would like to change that value using a...
5
by: Anders K. Olsen | last post by:
Hello group I'm developing a file application, but I have run into a problem that I hope you can help with. My application lists a number of files (names). Now I would like to display the...
5
by: Peter Lapic | last post by:
I have to create a image web service that when it receives an imageid parameter it will return a gif image from a file that has been stored on the server. The client will be an asp.net web page...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.