On Sun, 25 Dec 2005 18:28:09 +0100, "Armin Zingler"
<az*******@freenet.de> wrote:
"I Don't Like Spam" <no@spam.com> schrieb
Try: Messagebox.Show
Not: MsgBox (that's a vb6 function)
No, it is not a VB6 function. I always use msgbox and I use VB.Net and I do
not use the compatibility library.
Armin
Eh?
If I write
MsgBox("Test1")
MessageBox.Show("Test2")
it will show up as
Interaction.MsgBox("Test1", MsgBoxStyle.OkOnly, Nothing)
MessageBox.Show("Test2")
in .Net Reflector.
"Interaction.MsgBox" as in "Microsoft.VisualBasic.Interaction".
and if I press F2 and search for MsgBox, there is only one
such function.
So how can you say you are not using the compatibility library?
If not "Microsoft.VisualBasic.*", what do you consider
to be the compatiblity library?
TIA,
Joergen Bech
PS: I try consciously to avoid anything in the Microsoft.VisualBasic.*
hierarchy in order to do everything the .Net way. I know full well
that if I use anything from that hierarchy, I will go through another
layer, potentially affecting performance. I am guilty, though, of
always using MsgBox instead of MessageBox.Show. It is just
faster to write and some habits are hard to break.