Grab Value from text box
-
:rose:Hi all how to display a dialog box on button click and accept the values given in the text box in the dialog box sas
-
:rose:Hi all how to display a dialog box on button click and accept the values given in the text box in the dialog box sas
create a new form as a dialog and grab its text
"Change is the only constant thing in life Either or survive or get extinct"
-
create a new form as a dialog and grab its text
"Change is the only constant thing in life Either or survive or get extinct"
This is not enough i know how to do that but how to assign the textfron text box
-
This is not enough i know how to do that but how to assign the textfron text box
send it back to main form through a public function or something like that
-
:rose:Hi all how to display a dialog box on button click and accept the values given in the text box in the dialog box sas
It goes something like this.. public class EditBox : System.Windows.Forms.Form { private Button isOK; public TextBox aField; ... code here for the EditBox } public class MainApp { string TextfromUser; private DoSomething() { EditBox eb = new EditBox(); if (eb.ShowDialog() == DialogResult.OK) { TextfromUser = eb.aField.Text; } ... do something with text from the user } }