I'm assuming you are using Windows/WinForms and not web?
If so, you would need to put the text box on a form, then on the form you
could use the ShowDialog method of the form. When you call
[formnamehere].ShowDialog(... processing will stop in your loop until the
Hide or Close method of the form is called. Assuming you also had an OK
button on the form, in it's stuff the text box's text property into a new
property for the form, then call this.Hide. That way back in the loop you
can call the [formnamehere].mynewpropertyname to get what the user keyed in,
then [formnamehere].Close to close it.
I have to say though, calling a dialog box like that over and over is going
to make for a really bad user experience. You need to seriously rethink
this, and see if there's a better way to implement the interface. I know if
I were a user I wouldn't be happy about having this dialog pop up over and
over demanding info.
Robert
http://arcanecode.com
"Claude Grecea" <cg*****@shionogi-usa.comwrote in message
news:Oj**************@TK2MSFTNGP05.phx.gbl...
If anyone could help, I would greatly appreciated.
I am using a "For Loop" and thru each complete iteration I would like it
to stop and ask for user input, but I would not like to use a MessageBox.
Instead, I would like to use a Textbox. Is there a way for me to
accomplish this? Thanks in advance!
Claude