开发者

How to read values from boxes like messagebox or any other? [closed]

开发者 https://www.devze.com 2023-04-12 17:33 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_JAVA技巧 Closed 11 years ago.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消