How to pass flag from childform to parent?
<p>i have problem with passing boolean flag from childform to parentform.</p>

<p>I know how to pass it from parentform to childform for example:</p>

<p>On mainform:</p>

<pre><code>Camera settings = new Camera(this.fullPath3);
settings.ShowDialog();
</code></pre>

<p>On childform:</p>

<pre><code>public partial class Camera : Form
    {
        //Zmienne przekazywane - sciezka do zapisu wzorca, 
        string _fullPath3;
</code></pre>

<p>...</p>

<pre><code>  public Camera(string fullPath3)
    {

        InitializeComponent();
        _fullPath3 = fullPath3;
</code></pre>

<p>and it's working. How to add a bool Flag, as a return from my childform?</p>

<p>something like that:</p>

<p>On childform:</p>

<pre><code> public Camera(string fullPath3, bool flag)
</code></pre>

<p>On mainform:</p>

<pre><code>  Camera settings = new Camera(this.fullPath3,this.flag);
  settings.ShowDialog();
  if (flag==true) text2.text="OK!";
</code></pre>
