M
Mori
Hi,
What can I use for the equivalent VB InputBox to get a string from the user?
thanks,
Mori
What can I use for the equivalent VB InputBox to get a string from the user?
thanks,
Mori
Nicholas Paldino said:Mori,
You can set a reference to Microsoft.VisualBasic.dll and then call the
static InputBox method on the Interaction class in the Microsoft.VisualBasic
namespace.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Mori said:Hi,
What can I use for the equivalent VB InputBox to get a string from the user?
thanks,
Mori
Mori said:Thanks Nicholas but I'm trying to do without using the VisualBasic.dll if
possible.
Mori
in message news:[email protected]...Mori,
You can set a reference to Microsoft.VisualBasic.dll and then call the
static InputBox method on the Interaction class in the Microsoft.VisualBasic
namespace.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Mori said:Hi,
What can I use for the equivalent VB InputBox to get a string from the user?
thanks,
Mori
Nicholas Paldino said:Mori,
Then you will have to create your own form and handle the input
yourself.
I'm curious, why are you trying to avoid it? It's managed code, and it
is distributed with the runtime, so it is guaranteed to be there.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Mori said:Thanks Nicholas but I'm trying to do without using the VisualBasic.dll if
possible.
Mori
in message news:[email protected]...Mori,
You can set a reference to Microsoft.VisualBasic.dll and then call the
static InputBox method on the Interaction class in the Microsoft.VisualBasic
namespace.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Hi,
What can I use for the equivalent VB InputBox to get a string from the
user?
thanks,
Mori
Mori said:I'm using all .NET components in my (first) C# application and I don't want
to have to rely on any old dlls to shortcut any problems. I know it is code
that is already written and tested but because I'm learning a new language
and environment, I'm making every effort to stick to it.
I'll write my own form to do the job. Any ideas how I stop the code from
running whilst the user types in his/her input and presses the OK button.
eg.
.
.
.lines of code
result = MyNewInputForm("Input some info please");
.
.Carry on with program
.
.
Thanks
Mori
in message news:[email protected]...Mori,
Then you will have to create your own form and handle the input
yourself.
I'm curious, why are you trying to avoid it? It's managed code, and it
is distributed with the runtime, so it is guaranteed to be there.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
callMori said:Thanks Nicholas but I'm trying to do without using the VisualBasic.dll if
possible.
Mori
in message Mori,
You can set a reference to Microsoft.VisualBasic.dll and then
thestatic InputBox method on the Interaction class in the
Microsoft.VisualBasic
namespace.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Hi,
What can I use for the equivalent VB InputBox to get a string from the
user?
thanks,
Mori
-----Original Message-----
Yep, I would have used it without question. Sorry for my ignorance chaps, it
was just the name that scared me away. I will have a rethink (and perhaps a
little study).
Thanks for your knowledge.
Mori
Microsoft.VisualBasic.dll is just a name.
If it was called Microsoft.Utilities.dll you would you use
it wouldnt you ;-)
guy
problems.-----Original Message-----
I'm using all .NET components in my (first) C# application and I don't want
to have to rely on any old dlls to shortcut any
I know it is codethat is already written and tested but because I'm learning a new language
and environment, I'm making every effort to stick to it.
I'll write my own form to do the job. Any ideas how I stop the code fro
running whilst the user types in his/her input and presses the OK button.
eg.
..
..
..lines of code
result = MyNewInputForm("Input some info please");
..
..Carry on with program
..
..
Thanks
Mori
"Nicholas Paldino [.NET/C# MVP]"It'sin message Mori,
Then you will have to create your own form and handle the input
yourself.
I'm curious, why are you trying to avoid it?
managed code, andtoit
is distributed with the runtime, so it is guaranteed
be there.--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Thanks Nicholas but I'm trying to do without using the VisualBasic.dll
if
possible.
Mori
"Nicholas Paldino [.NET/C# MVP]"Microsoft.VisualBasic.dll and then callwrote
in message Mori,
You can set a reference tointhe
static InputBox method on the Interaction class
thetoMicrosoft.VisualBasic
namespace.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Hi,
What can I use for the equivalent VB InputBox
get a string fromthe
user?
thanks,
Mori
.
.
-----Original Message-----
Yep, I would have used it without question. Sorry for my ignorance chaps, it
was just the name that scared me away. I will have a rethink (and perhaps a
little study).
Thanks for your knowledge.
Mori
Microsoft.VisualBasic.dll is just a name.
If it was called Microsoft.Utilities.dll you would you use
it wouldnt you ;-)
guy
problems.-----Original Message-----
I'm using all .NET components in my (first) C# application and I don't want
to have to rely on any old dlls to shortcut any
I know it is codethat is already written and tested but because I'm learning a new language
and environment, I'm making every effort to stick to it.
I'll write my own form to do the job. Any ideas how I stop the code fro
running whilst the user types in his/her input and presses the OK button.
eg.
..
..
..lines of code
result = MyNewInputForm("Input some info please");
..
..Carry on with program
..
..
Thanks
Mori
"Nicholas Paldino [.NET/C# MVP]"It'sin message Mori,
Then you will have to create your own form and handle the input
yourself.
I'm curious, why are you trying to avoid it?
managed code, andtoit
is distributed with the runtime, so it is guaranteed
be there.--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Thanks Nicholas but I'm trying to do without using the VisualBasic.dll
if
possible.
Mori
"Nicholas Paldino [.NET/C# MVP]"Microsoft.VisualBasic.dll and then callwrote
in message Mori,
You can set a reference tointhe
static InputBox method on the Interaction class
thetoMicrosoft.VisualBasic
namespace.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Hi,
What can I use for the equivalent VB InputBox
get a string fromthe
user?
thanks,
Mori
.
.