How to pass flag from childform to parent?

前端 未结 2 1157
旧时难觅i
旧时难觅i 2021-01-28 03:50

i have problem with passing boolean flag from childform to parentform.

I know how to pass it from parentform to childform for example:

On mainform:



        
2条回答
  •  自闭症患者
    2021-01-28 04:05

    Just implement an internal or public property in your Camera form, and set this property within it.

    Something like this:

      Camera settings = new Camera(this.fullPath3,this.flag);
      settings.ShowDialog();
      if (settings.Flag) text2.text="OK!";
    

提交回复
热议问题