VB InputBox

M

Mori

Hi,

What can I use for the equivalent VB InputBox to get a string from the user?

thanks,
Mori
 
M

Mori

Thanks Nicholas but I'm trying to do without using the VisualBasic.dll if
possible.

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
 
N

Nicholas Paldino [.NET/C# MVP]

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)

Mori said:
Hi,

What can I use for the equivalent VB InputBox to get a string from the user?

thanks,
Mori
 
M

Mori

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

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
 
M

Mori

It's OK, I've done it, I wrote a Show() method that returns a value.

Thank,
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)

Mori 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
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
 
G

guy

scared of VB? surely not :)

we are all doing lots of learning - but its worth it!

good luck

guy
-----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

-----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
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 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]"
in 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?
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)

Thanks Nicholas but I'm trying to do without using the VisualBasic.dll
if
possible.

Mori


"Nicholas Paldino [.NET/C# MVP]"
wrote
in message 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










.


.
 
G

guy

scared of VB? surely not :)

we are all doing lots of learning - but its worth it!

good luck

guy
-----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

-----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
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 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]"
in 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?
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)

Thanks Nicholas but I'm trying to do without using the VisualBasic.dll
if
possible.

Mori


"Nicholas Paldino [.NET/C# MVP]"
wrote
in message 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










.


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top