Hi,
What can I use for the equivalent VB InputBox to get a string from the user?
thanks,
Mori 6 4336
Thanks Nicholas but I'm trying to do without using the VisualBasic.dll if
possible.
Mori
"Nicholas Paldino [.NET/C# MVP]" <ni**************@exisconsulting.com> wrote
in message news:Oo**************@TK2MSFTNGP11.phx.gbl... 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] - ni**************@exisconsulting.com
"Mori" <mo**@design-paradigm.co.uk> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... Hi,
What can I use for the equivalent VB InputBox to get a string from the
user? thanks, Mori
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]
- ni**************@exisconsulting.com
"Mori" <mo**@design-paradigm.co.uk> wrote in message
news:ei****************@TK2MSFTNGP11.phx.gbl... Thanks Nicholas but I'm trying to do without using the VisualBasic.dll if possible.
Mori
"Nicholas Paldino [.NET/C# MVP]" <ni**************@exisconsulting.com>
wrote in message news:Oo**************@TK2MSFTNGP11.phx.gbl... 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] - ni**************@exisconsulting.com
"Mori" <mo**@design-paradigm.co.uk> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... Hi,
What can I use for the equivalent VB InputBox to get a string from the
user? thanks, 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 [.NET/C# MVP]" <ni**************@exisconsulting.com> wrote
in message news:eQ**************@TK2MSFTNGP10.phx.gbl... 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] - ni**************@exisconsulting.com
"Mori" <mo**@design-paradigm.co.uk> wrote in message news:ei****************@TK2MSFTNGP11.phx.gbl... Thanks Nicholas but I'm trying to do without using the VisualBasic.dll
if possible.
Mori
"Nicholas Paldino [.NET/C# MVP]" <ni**************@exisconsulting.com> wrote in message news:Oo**************@TK2MSFTNGP11.phx.gbl... 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] - ni**************@exisconsulting.com
"Mori" <mo**@design-paradigm.co.uk> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl... > > Hi, > > What can I use for the equivalent VB InputBox to get a string from
the user? > > thanks, > Mori > >
It's OK, I've done it, I wrote a Show() method that returns a value.
Thank,
Mori
"Mori" <mo**@design-paradigm.co.uk> wrote in message
news:O3**************@TK2MSFTNGP10.phx.gbl... 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]" <ni**************@exisconsulting.com>
wrote in message news:eQ**************@TK2MSFTNGP10.phx.gbl... 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] - ni**************@exisconsulting.com
"Mori" <mo**@design-paradigm.co.uk> wrote in message news:ei****************@TK2MSFTNGP11.phx.gbl... Thanks Nicholas but I'm trying to do without using the VisualBasic.dll if possible.
Mori
"Nicholas Paldino [.NET/C# MVP]" <ni**************@exisconsulting.com> wrote in message news:Oo**************@TK2MSFTNGP11.phx.gbl... > 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] > - ni**************@exisconsulting.com > > "Mori" <mo**@design-paradigm.co.uk> wrote in message > news:%2****************@TK2MSFTNGP12.phx.gbl... > > > > Hi, > > > > What can I use for the equivalent VB InputBox to get a string from the > user? > > > > thanks, > > Mori > > > > > >
System.Windows.Forms.TextBox
"Mori" <mo**@design-paradigm.co.uk> wrote in message news:<#Q**************@TK2MSFTNGP12.phx.gbl>... Hi,
What can I use for the equivalent VB InputBox to get a string from the user?
thanks, Mori
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, itwas just the name that scared me away. I will have a
rethink (and perhaps alittle study).
Thanks for your knowledge. Mori
"guy" <gu********************@hotmail.com> wrote in
messagenews:09****************************@phx.gbl... 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]" <ni**************@exisconsulting.com> wrote >in message
news:eQ**************@TK2MSFTNGP10.phx.gbl... >> 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] >> - ni**************@exisconsulting.com >> >> "Mori" <mo**@design-paradigm.co.uk> wrote in message >> news:ei****************@TK2MSFTNGP11.phx.gbl... >> > Thanks Nicholas but I'm trying to do without using the VisualBasic.dll >if >> > possible. >> > >> > Mori >> > >> > >> > "Nicholas Paldino [.NET/C# MVP]" <ni**************@exisconsulting.com> >> wrote >> > in message news:Oo**************@TK2MSFTNGP11.phx.gbl... >> > > 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] >> > > - ni**************@exisconsulting.com >> > > >> > > "Mori" <mo**@design-paradigm.co.uk> wrote in
message >> > > news:%2****************@TK2MSFTNGP12.phx.gbl... >> > > > >> > > > Hi, >> > > > >> > > > What can I use for the equivalent VB InputBox
to get a string from >the >> > > user? >> > > > >> > > > thanks, >> > > > Mori >> > > > >> > > > >> > > >> > > >> > >> > >> >> > > >. >
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: news.microsoft.com |
last post by:
hey all, I am having an odd problem with the InputBox in VB.NET, and it ONLY
happens on one of my computers. When I try "Dim x as String =
InputBox("TESTPROMPT"), I get the following error:
...
|
by: missimaths |
last post by:
I was wondering if anyone knew of a way to control the text a user
types into an inputbox? I want the user to type in four letters only. I
can check the lenght by using the len() function in vba...
|
by: Hans Kamp |
last post by:
How do I use InputBox?
private void addButton_Click(object sender, System.EventArgs e)
{
string newName;
newName = InputBox("t1", "t2", "t3");
namesListBox.Items.Add(newName);
}
|
by: |
last post by:
When trying to use the InputBox function I get the
error "InputBox is a namespace and therefore is not a
valid expression". Can anyone tell me what the problem is?
Thanks.
|
by: portroe |
last post by:
How can you populate an array using an inputbox(es)?
thanks
portroe
|
by: jcrouse |
last post by:
Here is my code:
Private Sub cmP1JoyUpLabelSize_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmP1JoyUpLabelSize.Click
lblP1JoyUp.Width = InputBox("Enter the Width of...
|
by: about:mozilla |
last post by:
I'm just a newbie in vb.net and I have this terrible problem.
I want to use inputbox to get number.
-User can give numbers starting from 0
-If cancel is pressed then default number stays
-If text...
|
by: MLH |
last post by:
HowManyMore = InputBox(MyString, "How Many More?", "3")
The above line results in an InputBox displaying that has an X
button in the upper right corner. And next to it, there's a ? button
(for...
|
by: jpoquette |
last post by:
I have recently upgraded a Visual Basic 2003 win forms application to
2005. After doing so I can no longer get my project to compile. The
code is bombing on any line that uses an InputBox. I'm...
|
by: insight_find |
last post by:
I would like to check the user input into an inputbox in vb.net 2003.
The inputbox in my program assigns the input from the inputbox into an
array called get_grades which takes in students grades...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |