.net input box

  • Thread starter Thread starter cj
  • Start date Start date
That looks like the same thing as microsoft.visualbasic.inputbox

I thought microsoft.visualbasic were the old VB6 style commands and they
were considered outdated.

For that matter I don't import any namespaces but I can just say
inputbox and it works instead of having to say
microsoft.visualbasic.inputbox or visualbasic.inputbox.

I want to do things the vb2003 way and I understood inputbox was a
classic vb command so I wanted to know the new way of achieving this
functionality.
 
there really is none, you have to make your own

cj said:
That looks like the same thing as microsoft.visualbasic.inputbox

I thought microsoft.visualbasic were the old VB6 style commands and they
were considered outdated.

For that matter I don't import any namespaces but I can just say inputbox
and it works instead of having to say microsoft.visualbasic.inputbox or
visualbasic.inputbox.

I want to do things the vb2003 way and I understood inputbox was a classic
vb command so I wanted to know the new way of achieving this
functionality.
 
cj said:
That looks like the same thing as microsoft.visualbasic.inputbox

I thought microsoft.visualbasic were the old VB6 style commands and they
were considered outdated.

No, "Microsoft.VisualBasic.dll" is neither outdated nor obsolete or
deprecated. It's a first-class library for use with VB.NET. I think you
are mixing up "Microsoft.VisualBasic.dll" with
"Microsoft.VisualBasic.Compatibility.dll".
I want to do things the vb2003 way and I understood inputbox was a classic
vb command so I wanted to know the new way of achieving this
functionality.

The .NET Framework's class library doesn't contain an equivalent function or
class. I suggest to use 'InputBox'.
 
cj said:
That looks like the same thing as microsoft.visualbasic.inputbox

I thought microsoft.visualbasic were the old VB6 style commands and they
were considered outdated.

For that matter I don't import any namespaces but I can just say
inputbox and it works instead of having to say
microsoft.visualbasic.inputbox or visualbasic.inputbox.

I want to do things the vb2003 way and I understood inputbox was a
classic vb command so I wanted to know the new way of achieving this
functionality.

If you want, you can do what C/C++ programmers always had to do, and
what C# programmers probably do now (since the Microsoft.Visualbasic
namespace smells bad to them) - create your own class that has the same
functionality. Then you can make the form look however you want.
 
Your right. I was confusing it with .compatibility. Glad to hear
inputbox is still a perfectly acceptable way to do things.

Thanks for letting me know.
 
Back
Top