Select Row
-
Hi there, A little quistion. I have a Form that contain's a textfield and a Button. If the button is pressed a new form opens (the old form stays open too) The new form contains a datagrid where the user can select a customer. On the dubble click of the row the form closes and should put this value into the textfield. the select row is not the problem. the dubbelclick isn't a problem as wel. the problem is how can i fill the textbox when dubbelclicked on the row. I can pass the data between the forms. and usaly i use the initialize component or formload to fill up the forms. But in this case he doesn't reopen the first form.
-
Hi there, A little quistion. I have a Form that contain's a textfield and a Button. If the button is pressed a new form opens (the old form stays open too) The new form contains a datagrid where the user can select a customer. On the dubble click of the row the form closes and should put this value into the textfield. the select row is not the problem. the dubbelclick isn't a problem as wel. the problem is how can i fill the textbox when dubbelclicked on the row. I can pass the data between the forms. and usaly i use the initialize component or formload to fill up the forms. But in this case he doesn't reopen the first form.
-
that opens a new form and that is not exactly what i want cause he loads my populate textbox event which is defined by initialzi components.
-
that opens a new form and that is not exactly what i want cause he loads my populate textbox event which is defined by initialzi components.
-
Form1 frm1 = new Form1(); frm1.TextBox1.Text =
//value this code doesn't open form as u see it's declared new instance of Form and then via that instance it's refered to text of textbox.oke open was maybe a bad word to use.. but if i use this he will go to the initialize components section of the form and i wan't to skip that part i really don't want him to do this.. cause there he loads an event wich contains data from a previous form. any way he doesn;t load this 2 times.
-
oke open was maybe a bad word to use.. but if i use this he will go to the initialize components section of the form and i wan't to skip that part i really don't want him to do this.. cause there he loads an event wich contains data from a previous form. any way he doesn;t load this 2 times.
If i want to bypass this with a if else sting.empty he says that he cannot covert string to bool.