473,406 Members | 2,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Unchecking a radiobox

I'm trying to uncheck a radio through another radio with this command:

private void rdoPessoaJuridica_CheckedChanged(object sender,
System.EventArgs e)
{
rdoPessoaFisica.Visible = false;
}

but, doesn't work, what could it be ?
Nov 17 '05 #1
1 2246
Daniel Groh wrote:
I'm trying to uncheck a radio through another radio with this command:

private void rdoPessoaJuridica_CheckedChanged(object sender,
System.EventArgs e)
{
rdoPessoaFisica.Visible = false;
}

but, doesn't work, what could it be ?

Well, the Visible property has no relation to the cheked property, this
will just hide the option.

If the radio buttons are in a group (same container) then only one
should be able to be selected at the one time and the checked should
change automagically when one is selected.

Otherwise, use the checked property and set this to false.

JB
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Austin | last post by:
Every time i use wxRadioBox, it will show the box. I just want the options show on the panel. What could i do?
7
by: Mike Lopez | last post by:
Hello. I need to set a checkbox to the "checked" state and prevent the user from unchecking it. I tried using "disabled", but then the value is not passed on the Post to an ASP page. Anyone...
1
by: Phil Galey | last post by:
In VB.NET, is there a way to make it so the user can select items in a CheckedListBox, but is NOT able to check them? Even if I set Locked = True, the user is still able to both select and check...
13
by: Clevo | last post by:
Hello, I want to check if user select one from the radiobox group. How can I get the radiobox actual value in javascript. In the value field I see the default value, but how can I know if it...
1
by: Child | last post by:
I am having errors capturing both the value and the text of my radio box list selections: the list looks like this: <asp:RadioButtonList id="rblReferralFollowThrough" runat="server">...
0
by: wei | last post by:
Hello All I want to add RadioBox control or DropDownList control to my login page, so the user can choose which database they want to use, but after I added RadioBox control, It shows me the name"...
2
by: crystalattice | last post by:
In my GUI app, I have a radio box allowing the user to pick his/her gender. When I click a button, I'd like the radio box to tell the program which choice is marked. I can get it to work when I...
2
by: krisvt | last post by:
Hi. I'm trying to make a PHP script that simply prints some stored information after the user has checked a radiobox and presses submit. Have been many years since I have done any of this so...
1
Death Slaught
by: Death Slaught | last post by:
I play a game that when your backpack fills with items (the limit is 45) you must choose items to discard by unchecking their box. This is very annoying and time consuming so I was wondering if it...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.