Exemplo n.º 1
0
        private void cmdOpenDlg4_Click(object sender, EventArgs e)
        {
            KeepOut      dlg = new KeepOut();
            DialogResult dr  = dlg.ShowDialog(this);

            if (dr == DialogResult.OK)
            {
                limit_flag = false;
                Microsoft.Win32.RegistryKey regkey = Microsoft.Win32.Registry.LocalMachine.CreateSubKey(syamei);
                regkey.SetValue("int", 1);
                cmdOpenDlg4.Enabled = false;
            }
        }
Exemplo n.º 2
0
        private void cmdOpenDlg4_Click(object sender, EventArgs e)
        {
            KeepOut dlg = new KeepOut();

            dlg.ShowDialog();
        }