I have a form displaying some datagirdview and textboxes...But I need to read two more values from any box like messagebox or some dialogue boxes... is it possible?
Thanks
Which technology: Web, WPF, WinForms?
On WinForms you would design a new Form that you would display using form.ShowDialog()
. You can design that form however you like and set the AcceptButton and CancelButton properties to automatically set the DialogResult. Provide some properties on the form that you can read from the calling form.
The question is a bit vague - can you perhaps show some code?
If you want to hide textbox you should be able to use:
TextBox.Hide();
It depends what you want to read from the textbox - is it strings, integer, etc. If it is a string you could have something like the below in your code:
string mymessage; mymessage = Textbox.Text;
Let me know the situation you need to do this. Can you elaborate your question.
I let you check if the following make a part of the answer.
You may do like the following Case 1. Fill the form, click 'next', show your pop up message window. Read data then submit.
Case 2. If you use web pages, you may use accordian or like controls to hide a portion of the page. So embed the control of the pop up message box in the accordion control.
精彩评论