Ask the Expert

Problem with combo boxes using Visual C# with .NET

I'm just starting using Visual C# with .NET to try to write a front-end for an Access DB. I have three combo boxes which should be 'Yes/No'. Problem is that if I change value in one, they all change! Any ideas?

    Requires Free Membership to View

I am a bit confused here. Do you mean combo box, check box or radio button? Typically for yes/no answers, one would use a checkbox. Radio buttons work in groups. If you place several radio buttons on a form, they are part of a group based on the form. Only one will be selectable at a time. Use a GroupBox to organize radio buttons into groups.

Checkboxes are usually used to provide a Yes/No response. They tend to be easier to use and understand than having a series of drop-down combo boxes.

As to your specific question, without the code for the form I can't tell you why that behavior may be occurring.

This was first published in July 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: