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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:07:54+00:00 2026-06-01T12:07:54+00:00

I am getting frustrated with Google query’s on code so I’ll just ask all

  • 0

I am getting frustrated with Google query’s on code so I’ll just ask all you experts.

I have a <500 line program that lists files from clearcase in a tree now I want to click on them and check them in/out. The checkout part I can accomplish via command line or plugin (::whew:: clearcase is not easy to program with) anyhow I have to checkboxes one for checkin one for checkout and if neither are selected (both false) I want it to notify the user. I have the following code and it works…except that it always displays the “not selected” message since one flag is always false.

if (checkBox1.checked == true
{
   MessageBox.Show("this")
}
if (checkBox2.checked == true 
{
   MessageBox.Show("THAT")
}
if (checkbox1.checked == false | checkbox2.checked == false)
{
   MessageBox.show("You didn't select this or THAT")
}

After the first choice it always says “THAT” or “this” then “You didn’t select this or THAT”

Also I have the checkboxes setup so that when you check one it unchecks the other, but both can be false.

  • 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-01T12:07:55+00:00Added an answer on June 1, 2026 at 12:07 pm

    You want to check that they are both false, and that is done with a logical AND. The vertical bar represents an OR condition.

    if (checkbox1.checked == false && checkbox2.checked == false)
    {
        MessageBox.show("You didn't select this or THAT")
    }
    

    That should do what you are looking for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am really getting frustrated with Google Chrome... I have version 3.0.195.27 and want
I am really getting frustrated now! I have a new problem now, all I
After doing some search on SO, Google and MSDN forums I've become frustrated that
I am getting pretty frustrated, i have an tcp server running on my mac
I've been fighting with jQuery all night and getting quite frustrated here, so forgive
I have been so frustated by google API. Everytime I try, its just doesn't
I'm getting very frustrated and I'm hoping someone here can help. I have a
Im getting frustrated because of OpenDNS and other services (ie: roadrunner) that now always
I use an sql server regularly and have recently been getting frustrated by the
I'm getting increasingly frustrated with Flex's Dictionary (which is really just an array with

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.