Home All Groups Group Topic Archive Search About
Author
23 Mar 2006 9:57 PM
cj
What's the .net (2003) "replacement" for the input box function?

Author
23 Mar 2006 11:29 PM
Herfried K. Wagner [MVP]
"cj" <cj@nospam.nospam> schrieb:
> What's the .net (2003) "replacement" for the input box function?

'Microsoft.VisualBasic.Interaction.InputBox' ('InputBox').

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
24 Mar 2006 1:19 PM
cj
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.


Herfried K. Wagner [MVP] wrote:
Show quoteHide quote
> "cj" <cj@nospam.nospam> schrieb:
>> What's the .net (2003) "replacement" for the input box function?
>
> 'Microsoft.VisualBasic.Interaction.InputBox' ('InputBox').
>
Author
24 Mar 2006 1:40 PM
Brian Henry
there really is none, you have to make your own

Show quoteHide quote
"cj" <cj@nospam.nospam> wrote in message
news:OpX%23PW0TGHA.5108@TK2MSFTNGP11.phx.gbl...
> 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.
>
>
> Herfried K. Wagner [MVP] wrote:
>> "cj" <cj@nospam.nospam> schrieb:
>>> What's the .net (2003) "replacement" for the input box function?
>>
>> 'Microsoft.VisualBasic.Interaction.InputBox' ('InputBox').
>>
Author
24 Mar 2006 2:27 PM
Herfried K. Wagner [MVP]
"cj" <cj@nospam.nospam> schrieb:
> 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'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
24 Mar 2006 3:47 PM
cj
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.


Herfried K. Wagner [MVP] wrote:
Show quoteHide quote
> "cj" <cj@nospam.nospam> schrieb:
>> 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'.
>