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:
Camera settings = new Camera(this.fullPath3);
settings.ShowDialog();
On childform:
public partial class Camera : Form
{
//Zmienne przekazywane - sciezka do zapisu wzorca,
string _fullPath3;
…
public Camera(string fullPath3)
{
InitializeComponent();
_fullPath3 = fullPath3;
and it’s working. How to add a bool Flag, as a return from my childform?
something like that:
On childform:
public Camera(string fullPath3, bool flag)
On mainform:
Camera settings = new Camera(this.fullPath3,this.flag);
settings.ShowDialog();
if (flag==true) text2.text="OK!";
Simple,
Camerais a form so just add a public property to it.Now just:
remember that
ShowDialoghalts execution!