What code would I use for displaying a message box in VB.NET
Display message box
Collapse
This topic is closed.
X
X
-
A.A. FussyTags: None -
Cor -
Armin Zingler
Re: Display message box
"A.A. Fussy" <amarks@austarn et.com.au> schrieb[color=blue]
> What code would I use for displaying a message box in VB.NET[/color]
Msgbox "Msgbox"
or
Messagebox.Show "Messagebox.Sho w"
--
Armin
Comment
-
Herfried K. Wagner [MVP]
Re: Display message box
* "Armin Zingler" <az.nospam@free net.de> scripsit:[color=blue][color=green]
> > What code would I use for displaying a message box in VB.NET[/color]
>
> Msgbox "Msgbox"
>
> or
>
> Messagebox.Show "Messagebox.Sho w"[/color]
I would use "(" and ")".
;-)
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Comment
-
Armin Zingler
Re: Display message box
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> schrieb[color=blue]
> * "Armin Zingler" <az.nospam@free net.de> scripsit:[color=green][color=darkred]
> > > What code would I use for displaying a message box in VB.NET[/color]
> >
> > Msgbox "Msgbox"
> >
> > or
> >
> > Messagebox.Show "Messagebox.Sho w"[/color]
>
> I would use "(" and ")".
>
> ;-)[/color]
They appear automatically. :)
--
Armin
Comment
-
Cor
Re: Display message box
Herfried,
[color=blue][color=green]
> >
> > Msgbox "Msgbox"
> >
> > or
> >
> > Messagebox.Show "Messagebox.Sho w"[/color]
>
> I would use "(" and ")".
>[/color]
Better is "AndAlso"
:-)
Cor
Comment
-
Scott M.
Re: Display message box
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.nospam@free net.de> wrote in message
news:OZ0XHz8kDH A.2500@TK2MSFTN GP10.phx.gbl...[color=blue]
> "A.A. Fussy" <amarks@austarn et.com.au> schrieb[color=green]
> > What code would I use for displaying a message box in VB.NET[/color]
>
> Msgbox "Msgbox"
>
> or
>
> Messagebox.Show "Messagebox.Sho w"
>
>
> --
> Armin
>[/color]
Comment
-
Herfried K. Wagner [MVP]
Re: Display message box
* "Cor" <non@non.com> scripsit:[color=blue][color=green][color=darkred]
> > > Messagebox.Show "Messagebox.Sho w"[/color]
> >
> > I would use "(" and ")".
> >[/color]
>
> Better is "AndAlso"[/color]
AndAlso ROFL.
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Comment
-
Herfried K. Wagner [MVP]
Re: Display message box
* "Armin Zingler" <az.nospam@free net.de> scripsit:[color=blue][color=green]
> > I would use "(" and ")".
> >
> > ;-)[/color]
>
> They appear automatically. :)[/color]
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>
Comment
-
Armin Zingler
Re: Display message box
"Scott M." <s-mar@badspamsnet .net> schrieb[color=blue]
> 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.[/color]
I know. But Msgbox is shorter.
--
Armin
Comment
-
Armin Zingler
Re: Display message box
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> schrieb[color=blue]
> * "Armin Zingler" <az.nospam@free net.de> scripsit:[color=green][color=darkred]
> > > I would use "(" and ")".
> > >
> > > ;-)[/color]
> >
> > They appear automatically. :)[/color]
>
> Somebody told me that some people are out there who don't use an IDE
> to develop their applications.
>
> ;-)[/color]
Not my problem. :)
--
Armin
Comment
-
Rick
Re: Display message box
On Thu, 16 Oct 2003 23:20:03 +0200, Cor wrote:[color=blue]
>
> Herfried,
>[color=green][color=darkred]
> > >
> > > Msgbox "Msgbox"
> > >
> > > or
> > >
> > > Messagebox.Show "Messagebox.Sho w"[/color]
> >
> > I would use "(" and ")".
> >[/color]
>
> Better is "AndAlso"[/color]
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
Comment
-
Herfried K. Wagner [MVP]
Re: Display message box
* "Armin Zingler" <az.nospam@free net.de> scripsit:[color=blue][color=green][color=darkred]
> > > They appear automatically. :)[/color]
> >
> > Somebody told me that some people are out there who don't use an IDE
> > to develop their applications.
> >
> > ;-)[/color]
>
>
> Not my problem. :)[/color]
Maybe you can add a hint in your signature?
;-)))
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Comment
-
Armin Zingler
Re: Display message box
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> schrieb[color=blue][color=green][color=darkred]
> > > Somebody told me that some people are out there who don't use an
> > > IDE to develop their applications.
> > >
> > > ;-)[/color]
> >
> >
> > Not my problem. :)[/color]
>
> Maybe you can add a hint in your signature?
>
> ;-)))
>[/color]
I could, but I'm now saving my "by call traffic" bytes. ;-)
--
Armin
Comment
-
Scott M.
Re: Display message box
Ok Armin, I can't argue with that! ;-)
"Armin Zingler" <az.nospam@free net.de> wrote in message
news:u1ZwpiIlDH A.688@TK2MSFTNG P10.phx.gbl...[color=blue]
> "Scott M." <s-mar@badspamsnet .net> schrieb[color=green]
> > 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.[/color]
>
> I know. But Msgbox is shorter.
>
>
> --
> Armin
>[/color]
Comment
Comment