473,396 Members | 2,030 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,396 software developers and data experts.

How to handle multiple radiobutton in visual studio 2008 c#

Actually i need a help that i created a program in visual studio 2008-windows form application. But there is a logical error that i can't run multiple radiobutton. i placed 18 radiobutton in groupbox1 and other five radiobutton placed in groupbox2. if i select radiobutton1 from groupbox1 i need to get enable groupbox2 and some radiobutons need to be enabled. like this way other radiobuttons from groupbox1 will handle the groupbox2 contents.

my mistake is- "it can't run in simple if-else statement" is there any possible way to execute the code?? some of the coding i given below

if (radioButton1.Enabled == true)
{
groupBox1.Enabled = true;
radioButton19.Enabled = true;
radioButton20.Enabled = true;
radioButton21.Enabled = true;
radioButton22.Enabled = false;
radioButton23.Enabled = true;
}

if (radioButton2.Enabled == true)
{
groupBox1.Enabled = true;
radioButton19.Enabled = true;
radioButton20.Enabled = true;
radioButton21.Enabled = true;
radioButton22.Enabled = false;
radioButton23.Enabled = false;
}
if (radioButton3.Enabled == true)
{
groupBox1.Enabled = true;
radioButton20.Enabled = true;
radioButton21.Enabled = true;
}

if (radioButton4.Enabled == true)
{
groupBox1.Enabled = true;
radioButton19.Enabled = true;
radioButton23.Enabled = true;
}
if (radioButton5.Enabled == true)
{
groupBox1.Enabled = true;
radioButton20.Enabled = true;
}
if (radioButton6.Enabled == true)
{
groupBox1.Enabled = true;
radioButton19.Enabled = true;
}
if (radioButton7.Enabled == true)
{
groupBox1.Enabled = true;
radioButton19.Enabled = true;
}
if (radioButton8.Enabled == true)
{
groupBox1.Enabled = true;
radioButton19.Enabled = true;
radioButton23.Enabled = true;
}
if (radioButton9.Enabled == true)
{
groupBox1.Enabled = true;
radioButton19.Enabled = true;
radioButton22.Enabled = true;
}
if (radioButton10.Enabled == true)
{
groupBox1.Enabled = true;
radioButton19.Enabled = true;
}
if (radioButton11.Enabled == true)
{
groupBox1.Enabled = true;
radioButton19.Enabled = true;
radioButton23.Enabled = true;
}
if (radioButton12.Enabled == true)
{
groupBox1.Enabled = true;
radioButton19.Enabled = true;
radioButton23.Enabled = true;
}
if (radioButton13.Enabled == true)
{
groupBox1.Enabled = true;
radioButton22.Enabled = true;
radioButton23.Enabled = true;
}
Feb 22 '11 #1
1 2479
Leito
58
I don't understand your problem here. Could you be more specific? What doesn't work ?
Feb 22 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: fiona | last post by:
Reading, Berkshire, UK 05 June 2007 - Crainiate Software make details available of the release of Objecto Framework 2.0, an upgrade to their enterprise business component framework, designed to...
2
by: =?Utf-8?B?SmFzb24gQS4gSmVuc2Vu?= | last post by:
I have a MSDN Subscription expiring this month but really need Visual Studio 2008 when it comes out. I called customer service to find out but they don't know. They seemed to think it was a...
9
by: =?Utf-8?B?RmxhdmVsbGUgQmFsbGVt?= | last post by:
Apparently the Java Conversion tool that used to be in Visual Studio 2005 is no longer supported in Visual Studio 2008. Anyone have any suggestions on how to convert a Java program to C# in Visual...
4
by: Colin J. Williams | last post by:
The readme.txt has: All you need to do is open the workspace "pcbuild.sln" in Visual Studio, select the desired combination of configuration and platform and eventually build the solution....
2
by: Nikolay Belyh | last post by:
1. Why does Visual Studio 2008 started ignoring //{NO_DEPENDENCIES} in resource.h? If I edit file "resource.h" _manually_, it rebuilds the whole solution. It worked just fine with Visual Studio...
4
by: lichaoir | last post by:
Can I develop asp.net 1.1 application in visual studio 2008? I've tried to find .net framework 1.1 in the project's properties window, but I can't find it! Please help! Thanks for your...
4
by: Miro | last post by:
<i have also added this reply to the other newsgroup - now that I have realizd ( and assuming ) it is not a localized error directly to vb.> I have found this link on the website:...
0
by: _Who | last post by:
I'm trying to free up some space on my system disk. In Add or Remove Programs I see: Microsoft Windows SDK for Visual Studio 2008 .NET Framework Tools Microsoft Windows SDK for Visual Studio...
1
by: Puja Patel | last post by:
hi all, am not sure if this is the right place for this post. I created a website on .net framework 2.0 using visual studio 2005 and web service software factory. I created all my business...
2
by: blogman | last post by:
I am getting a Visual studio 2008 IDE application R6034 runtime error. This means that the IDE application is raising the error not the application I am building. This means that Microsoft did not...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.