Ejemplo n.º 1
0
        public Form_ChecBox form_CheckBox;         //variável global
        public Form_FilhoCheckBox()
        {
            InitializeComponent();

            if (Application.OpenForms["Form_ChecBox"].Created)
            {
                form_CheckBox     = Application.OpenForms["Form_ChecBox"] as Form_ChecBox;
                cb_carro.Checked  = form_CheckBox.cb_carro.Checked;
                cb_aviao.Checked  = form_CheckBox.cb_aviao.Checked;
                cb_navio.Checked  = form_CheckBox.cb_navio.Checked;
                cb_onibus.Checked = form_CheckBox.cb_onibus.Checked;
            }
        }
Ejemplo n.º 2
0
        private void checkBoxToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form_ChecBox form_ChecBox = new Form_ChecBox();

            form_ChecBox.ShowDialog();
        }