Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8348419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:41:01+00:00 2026-06-09T07:41:01+00:00

public Form1() { InitializeComponent(); } private void checkBox1_CheckedChanged(object sender, EventArgs e) { textBox1.Enabled =

  • 0
 public Form1()
    {
        InitializeComponent();
    }

    private void checkBox1_CheckedChanged(object sender, EventArgs e)
    {
        textBox1.Enabled = checkBox1.Checked;
    }

    private void Form1_Load(object sender, EventArgs e)
    {
        checkBox1.Checked = false;
    }

I set the check state in load event handler, and why in this case, the CheckedChanged not fired?
If i click the check box, then the CheckedChanged is fired.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T07:41:03+00:00Added an answer on June 9, 2026 at 7:41 am

    If your checked state is initially false, then setting it to false again doesn’t fire the CheckedChanged event.
    That happens because the checked state isn’t actually changed

    This is the internal code used when trying to set the CheckBox1.Checked property

    public void set_Checked(bool value)
    {
        if (value != this.Checked)
        {
            this.CheckState = value ? CheckState.Checked : CheckState.Unchecked;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

public class Form1 : System.Windows.Forms.Form { private void eachCornerPix (object sender, PaintEventArgs e, out
private void button1_Click(object sender, EventArgs e) { Insert(); } private int Insert() { string
public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void
partial class Form1 { //hidden private void InitializeComponent() { this.picture = new System.Windows.Forms.PictureBox(); //hidden
public partial class Form1 : Form { private EventThrower _Thrower; public Form1() { InitializeComponent();
public Form1() { InitializeComponent(); Collection<Test> tests = new Collection<Test>(); tests.Add(new Test(test1)); tests.Add(new Test(test2)); foreach
With this code: public partial class Form1 : Form { private static readonly int
Currently, I have something like: public partial class Form1 : Form { delegate void
Why does the paint even take so long? public Form1() { InitializeComponent(); SuspendLayout(); double
public Form1() { InitializeComponent(); comboBox1.DisplayMember = Name; comboBox1.ValueMember = ID; LoadUsersToComboBox(); } PersonRepository peopleRepo

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.