Forum > Coding >

Halp me thx

Posts: 22

Threads: 9

Joined: Jun, 2018

Reputation: 0

Posted

Who has a code that when the Checkbox is checked the topmost turn enabled, and when I remove the check it disables?
  • 0

Posts: 212

Threads: 42

Joined: May, 2018

Reputation: 0

Replied

You need two check Boxes, I can show you if you join my private discord server, here's the code

----discord----
https://discord.gg/zJYnKv
-------------------------------------

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            checkBox2.Visible = true;
            TopMost = true;
        }

        private void checkBox2_CheckedChanged(object sender, EventArgs e)
        {
            checkBox1.Visible = true;
            TopMost = false;
        }
    }
}
  • 0

Posts: 17

Threads: 4

Joined: Jun, 2018

Reputation: 0

Replied

the last 
   }
  }
are un required 
  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )