dimanche 28 février 2021

How to do an "if" command that is always checked in c# [closed]

i do a brawser and i want that wen i click on cheackbox in other form so the button is be anable and this is not working so i think the if fanction is not calld every time and i think its not work becas becas this.

the terms Code:

private void timer1_Tick(object sender, EventArgs e)
    {
        pictureBox1.Left += 2;
        
        if(ScarchBoutuneEnable == false)
        {
            button6.Enabled = false;
        }

        if (ScarchBoutuneEnable == true)
        {
            button6.Enabled = true;
        }

        if (URL_String.Contains("https"))
        {
            textBox4.Text = "cycurityd";
        }

        else
        {
            textBox4.Text = "not cycurityd";
        }

        
    }

the checkbox code:

private void checkBox1_CheckedChanged(object sender, EventArgs e)
    {
        Form1 form1 = new Form1();
        form1.ScarchBoutuneEnable = true;
        if (checkBox1.Checked)
        {
            
        }

        if (checkBox1.Checked != true)
        {
            form1.ScarchBoutuneEnable = false;
        }

Aucun commentaire:

Enregistrer un commentaire