how to get value from Dialog Form?

  • Thread starter Thread starter bg
  • Start date Start date
B

bg

Hello,
I have two froms. One is main. the other is opened from main by Dialog
style. I want to pass value(e.g. grid cell value) from other form
(ShowDialog) to main form.

How can I do this.
thanks
burhan
 
thanks.
I done this.
I want this action by double clicking grid row, not clicking button. Or when
i double click grid row (in dialog form), this triggered the button and the
value of activerow in dialog from will be passed to main forms active grid
row.

can anyone help me?
"note : the subject 'Selected value from a modal form' from Mark
will explain how get Records from dialog form by button. I just want do
this by double clicking row?
 
I done this.
thanks all.

In double click event of grid(in Dialog Form), I use the code
this.DialogResult = DialogResult.OK;

Because of using below comparison, I can pass the value from dialog to main
form.

frmProducts frmForm = new frmProducts(ordercolumn,order);

if (frmForm.ShowDialog(this) == DialogResult.OK){

......
}
 
Back
Top