>>How can I return a value from the called form?You can't. Create a property on your form, and access it from the calling control:
if (SelectAllAnimals.ShowDialog() == DialogResult.OK)
{
this.MyVariable = SelectAllAnimals.MyReturnValue;
}
~~Bonnie
>I am displaying a form from a button on another form using the following code
>
>frmSelectAllAnimals SelectAllAnimals = new frmSelectAllAnimals() ;
>SelectAllAnimals.ShowDialog() ;
>
>
>How can I return a value from the called form?
>
>Thanks
>
>John