English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want to show a Message box and to put in it a text box and if the user presses OK it gives me the ability to use the text in the text box how to make a such thing in C# ??

2006-06-06 04:51:46 · 2 answers · asked by I.M. 2 in Computers & Internet Programming & Design

bigjim6201
can U tell me how to create that new form and to make it appear like the message box I mean when a button be clicked???

2006-06-06 04:59:02 · update #1

2 answers

Confused. You cannot put a textbox in a message box you would have to create another form.

If you just want to be able to have access to a certain string throughout your program then you could just create a string variable and put the text you want in it.

2006-06-06 04:54:46 · answer #1 · answered by bigjim6201 2 · 1 0

When you hit the OK button in the on button clicked event you need to store the info in the message box in what is called a session variable, then you use Response.Redirect to go to another page and display the session var in the text box you need.

2006-06-06 07:53:40 · answer #2 · answered by sinkablehail1978 5 · 0 0

fedest.com, questions and answers