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 9116711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:44:24+00:00 2026-06-17T04:44:24+00:00

I have 2 forms. The second form (frmConvert) has 3 checkboxes. I can change

  • 0

I have 2 forms. The second form (frmConvert) has 3 checkboxes. I can change the value of one checkbox by using :-

Form1

f.CheckBoxChecked = true;

(frmConvert)

public bool CheckBoxChecked
{
get { return checkBox1.Checked; }
set { checkBox1.Checked = value; }
}

What I’d like to know is, if I have 3 checkboxes (checkBox1, checkBox2 & checkBox3), how can I have a seperate line of code on form1 so I can change the value of each seperately, without having seperate functions for each?

  • 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-17T04:44:25+00:00Added an answer on June 17, 2026 at 4:44 am

    do

    public void doCheck(int index,bool value)
        {
    
            switch (index)
            {
                case 1:
                    checkBox1.Checked = value;
                    break;
                case 2:
                    checkBox2.Checked = value;
                    break;
                case 3:
                    checkBox3.Checked = value;
                    break;
                default:
                    break;
            }
    
        }
    

    and use :

    Form3 f = new Form3();
    f.doCheck(2, true);
    f.doCheck(3, false);
    f.ShowDialog();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this form: <input type=checkbox value=First />First <input type=checkbox value=Second />Second <input type=checkbox
I am new in .net.I need help. I have 2 forms one form has
I have two forms, one with a button 'Add' which loads the second form
I'm coding in c# using visual studio 2010. I have 2 forms. One form
I have three input text boxes in my form. First one is teacher, second
I have a two forms on a page. The first one has several quantity
I have 2 separate forms. The first form handler determines if the second form
So I pass the ID value from one form to the next using Docmd.OpenForm
I have two forms on the same page, but I want the second form
I have two forms. I need to open a second form with a button.

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.