Thanks Nicholas but I'm trying to do without using the VisualBasic.dll if
possible.
Mori
"Nicholas Paldino [.NET/C# MVP]" <nicholas.paldi no@exisconsulti ng.com> wrote
in message news:Oo6ISihSDH A.1920@TK2MSFTN GP11.phx.gbl...[color=blue]
> Mori,
>
> You can set a reference to Microsoft.Visua lBasic.dll and then call the
> static InputBox method on the Interaction class in the[/color]
Microsoft.Visua lBasic[color=blue]
> namespace.
>
> Hope this helps.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - nicholas.paldin o@exisconsultin g.com
>
> "Mori" <mori@design-paradigm.co.uk> wrote in message
> news:%23Q7cichS DHA.1576@TK2MSF TNGP12.phx.gbl. ..[color=green]
> >
> > Hi,
> >
> > What can I use for the equivalent VB InputBox to get a string from the[/color]
> user?[color=green]
> >
> > thanks,
> > Mori
> >
> >[/color]
>
>[/color]
"Mori" <mori@design-paradigm.co.uk> wrote in message
news:ei4n%23qhS DHA.2256@TK2MSF TNGP11.phx.gbl. ..[color=blue]
> Thanks Nicholas but I'm trying to do without using the VisualBasic.dll if
> possible.
>
> Mori
>
>
> "Nicholas Paldino [.NET/C# MVP]" <nicholas.paldi no@exisconsulti ng.com>[/color]
wrote[color=blue]
> in message news:Oo6ISihSDH A.1920@TK2MSFTN GP11.phx.gbl...[color=green]
> > Mori,
> >
> > You can set a reference to Microsoft.Visua lBasic.dll and then call[/color][/color]
the[color=blue][color=green]
> > static InputBox method on the Interaction class in the[/color]
> Microsoft.Visua lBasic[color=green]
> > namespace.
> >
> > Hope this helps.
> >
> >
> > --
> > - Nicholas Paldino [.NET/C# MVP]
> > - nicholas.paldin o@exisconsultin g.com
> >
> > "Mori" <mori@design-paradigm.co.uk> wrote in message
> > news:%23Q7cichS DHA.1576@TK2MSF TNGP12.phx.gbl. ..[color=darkred]
> > >
> > > Hi,
> > >
> > > What can I use for the equivalent VB InputBox to get a string from the[/color]
> > user?[color=darkred]
> > >
> > > thanks,
> > > Mori
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]
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 [.NET/C# MVP]" <nicholas.paldi no@exisconsulti ng.com> wrote
in message news:eQ9DkthSDH A.1724@TK2MSFTN GP10.phx.gbl...[color=blue]
> 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[/color]
it[color=blue]
> is distributed with the runtime, so it is guaranteed to be there.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - nicholas.paldin o@exisconsultin g.com
>
> "Mori" <mori@design-paradigm.co.uk> wrote in message
> news:ei4n%23qhS DHA.2256@TK2MSF TNGP11.phx.gbl. ..[color=green]
> > Thanks Nicholas but I'm trying to do without using the VisualBasic.dll[/color][/color]
if[color=blue][color=green]
> > possible.
> >
> > Mori
> >
> >
> > "Nicholas Paldino [.NET/C# MVP]" <nicholas.paldi no@exisconsulti ng.com>[/color]
> wrote[color=green]
> > in message news:Oo6ISihSDH A.1920@TK2MSFTN GP11.phx.gbl...[color=darkred]
> > > Mori,
> > >
> > > You can set a reference to Microsoft.Visua lBasic.dll and then call[/color][/color]
> the[color=green][color=darkred]
> > > static InputBox method on the Interaction class in the[/color]
> > Microsoft.Visua lBasic[color=darkred]
> > > namespace.
> > >
> > > Hope this helps.
> > >
> > >
> > > --
> > > - Nicholas Paldino [.NET/C# MVP]
> > > - nicholas.paldin o@exisconsultin g.com
> > >
> > > "Mori" <mori@design-paradigm.co.uk> wrote in message
> > > news:%23Q7cichS DHA.1576@TK2MSF TNGP12.phx.gbl. ..
> > > >
> > > > Hi,
> > > >
> > > > What can I use for the equivalent VB InputBox to get a string from[/color][/color][/color]
the[color=blue][color=green][color=darkred]
> > > user?
> > > >
> > > > thanks,
> > > > Mori
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]
It's OK, I've done it, I wrote a Show() method that returns a value.
Thank,
Mori
"Mori" <mori@design-paradigm.co.uk> wrote in message
news:O3ykV4hSDH A.2092@TK2MSFTN GP10.phx.gbl...[color=blue]
> I'm using all .NET components in my (first) C# application and I don't[/color]
want[color=blue]
> to have to rely on any old dlls to shortcut any problems. I know it is[/color]
code[color=blue]
> 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 [.NET/C# MVP]" <nicholas.paldi no@exisconsulti ng.com>[/color]
wrote[color=blue]
> in message news:eQ9DkthSDH A.1724@TK2MSFTN GP10.phx.gbl...[color=green]
> > 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[/color]
> it[color=green]
> > is distributed with the runtime, so it is guaranteed to be there.
> >
> >
> > --
> > - Nicholas Paldino [.NET/C# MVP]
> > - nicholas.paldin o@exisconsultin g.com
> >
> > "Mori" <mori@design-paradigm.co.uk> wrote in message
> > news:ei4n%23qhS DHA.2256@TK2MSF TNGP11.phx.gbl. ..[color=darkred]
> > > Thanks Nicholas but I'm trying to do without using the VisualBasic.dll[/color][/color]
> if[color=green][color=darkred]
> > > possible.
> > >
> > > Mori
> > >
> > >
> > > "Nicholas Paldino [.NET/C# MVP]" <nicholas.paldi no@exisconsulti ng.com>[/color]
> > wrote[color=darkred]
> > > in message news:Oo6ISihSDH A.1920@TK2MSFTN GP11.phx.gbl...
> > > > Mori,
> > > >
> > > > You can set a reference to Microsoft.Visua lBasic.dll and then[/color][/color][/color]
call[color=blue][color=green]
> > the[color=darkred]
> > > > static InputBox method on the Interaction class in the
> > > Microsoft.Visua lBasic
> > > > namespace.
> > > >
> > > > Hope this helps.
> > > >
> > > >
> > > > --
> > > > - Nicholas Paldino [.NET/C# MVP]
> > > > - nicholas.paldin o@exisconsultin g.com
> > > >
> > > > "Mori" <mori@design-paradigm.co.uk> wrote in message
> > > > news:%23Q7cichS DHA.1576@TK2MSF TNGP12.phx.gbl. ..
> > > > >
> > > > > Hi,
> > > > >
> > > > > What can I use for the equivalent VB InputBox to get a string from[/color][/color]
> the[color=green][color=darkred]
> > > > user?
> > > > >
> > > > > thanks,
> > > > > Mori
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]
"Mori" <mori@design-paradigm.co.uk> wrote in message news:<#Q7cichSD HA.1576@TK2MSFT NGP12.phx.gbl>. ..[color=blue]
> Hi,
>
> What can I use for the equivalent VB InputBox to get a string from the user?
>
> thanks,
> Mori[/color]
we are all doing lots of learning - but its worth it!
good luck
guy[color=blue]
>-----Original Message-----
>Yep, I would have used it without question. Sorry for my[/color]
ignorance chaps, it[color=blue]
>was just the name that scared me away. I will have a[/color]
rethink (and perhaps a[color=blue]
>little study).
>
>Thanks for your knowledge.
>Mori
>
>
>"guy" <guy_nosheep_sw ettenham@hotmai l.com> wrote in[/color]
message[color=blue]
>news:096501c34 a9c$7c2c56a0$a1 01280a@phx.gbl. ..[color=green]
>> Microsoft.Visua lBasic.dll is just a name.
>> If it was called Microsoft.Utili ties.dll you would you[/color][/color]
use[color=blue][color=green]
>> it wouldnt you ;-)
>>
>> guy
>>
>>[color=darkred]
>> >-----Original Message-----
>> >I'm using all .NET components in my (first) C#[/color]
>> application and I don't want[color=darkred]
>> >to have to rely on any old dlls to shortcut any[/color][/color][/color]
problems.[color=blue][color=green]
>> I know it is code[color=darkred]
>> >that is already written and tested but because I'm[/color]
>> learning a new language[color=darkred]
>> >and environment, I'm making every effort to stick to[/color][/color][/color]
it.[color=blue][color=green][color=darkred]
>> >
>> >I'll write my own form to do the job. Any ideas how I[/color]
>> stop the code fro[color=darkred]
>> >running whilst the user types in his/her input and[/color]
>> presses the OK button.[color=darkred]
>> >eg.
>> >..
>> >..
>> >..lines of code
>> >
>> >result = MyNewInputForm( "Input some info please");
>> >..
>> >..Carry on with program
>> >..
>> >..
>> >
>> >Thanks
>> >Mori
>> >
>> >"Nicholas Paldino [.NET/C# MVP]"[/color]
>> <nicholas.paldi no@exisconsulti ng.com> wrote[color=darkred]
>> >in message[/color][/color][/color]
news:eQ9DkthSDH A.1724@TK2MSFTN GP10.phx.gbl...[color=blue][color=green][color=darkred]
>> >> Mori,
>> >>
>> >> Then you will have to create your own form and[/color]
>> handle the input[color=darkred]
>> >> yourself.
>> >>
>> >> I'm curious, why are you trying to avoid it?[/color][/color][/color]
It's[color=blue][color=green]
>> managed code, and[color=darkred]
>> >it
>> >> is distributed with the runtime, so it is guaranteed[/color][/color][/color]
to[color=blue][color=green]
>> be there.[color=darkred]
>> >>
>> >>
>> >> --
>> >> - Nicholas Paldino [.NET/C# MVP]
>> >> - nicholas.paldin o@exisconsultin g.com
>> >>
>> >> "Mori" <mori@design-paradigm.co.uk> wrote in message
>> >> news:ei4n%23qhS DHA.2256@TK2MSF TNGP11.phx.gbl. ..
>> >> > Thanks Nicholas but I'm trying to do without using[/color]
>> the VisualBasic.dll[color=darkred]
>> >if
>> >> > possible.
>> >> >
>> >> > Mori
>> >> >
>> >> >
>> >> > "Nicholas Paldino [.NET/C# MVP]"[/color]
>> <nicholas.paldi no@exisconsulti ng.com>[color=darkred]
>> >> wrote
>> >> > in message[/color]
>> news:Oo6ISihSDH A.1920@TK2MSFTN GP11.phx.gbl...[color=darkred]
>> >> > > Mori,
>> >> > >
>> >> > > You can set a reference to[/color]
>> Microsoft.Visua lBasic.dll and then call[color=darkred]
>> >> the
>> >> > > static InputBox method on the Interaction class[/color][/color][/color]
in[color=blue][color=green]
>> the[color=darkred]
>> >> > Microsoft.Visua lBasic
>> >> > > namespace.
>> >> > >
>> >> > > Hope this helps.
>> >> > >
>> >> > >
>> >> > > --
>> >> > > - Nicholas Paldino [.NET/C# MVP]
>> >> > > -[/color][/color][/color] nicholas.paldin o@exisconsultin g.com[color=blue][color=green][color=darkred]
>> >> > >
>> >> > > "Mori" <mori@design-paradigm.co.uk> wrote in[/color][/color][/color]
message[color=blue][color=green][color=darkred]
>> >> > > news:%23Q7cichS DHA.1576@TK2MSF TNGP12.phx.gbl. ..
>> >> > > >
>> >> > > > Hi,
>> >> > > >
>> >> > > > What can I use for the equivalent VB InputBox[/color][/color][/color]
to[color=blue][color=green]
>> get a string from[color=darkred]
>> >the
>> >> > > user?
>> >> > > >
>> >> > > > thanks,
>> >> > > > Mori
>> >> > > >
>> >> > > >
>> >> > >
>> >> > >
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>> >.
>> >[/color][/color]
>
>
>.
>[/color]
Comment