NEW!
CSHTML5 has now become OpenSilver!
We are happy to announce that CSHTML5 has been significantly improved and rebranded
to 'OpenSilver', which stands for 'Open-source reimplementation of Silverlight'. It is fully backward compatible and it can be downloaded from
OpenSilver.net. Upgrading from
CSHTML5 to OpenSilver is very easy.
Read the FAQ
var childWindow1 = new ChildWindow1(); childWindow1.Show();
childWindow1.Closed += new EventHandler(ChildWindow1_Closed); ... void ChildWindow1_Closed(object sender, EventArgs e) { var childWindow1 = (ChildWindow1)sender; MessageBox.Show("The result is: " + childWindow1.DialogResult.ToString()); }
this.DialogResult = true; // This will automatically close the ChildWindow.If you want to pass a value other than boolean, you can add a property to your ChildWindow implementation and set it to the desired value.
Please click here for contact information.