473,811 Members | 2,665 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

selecting only one item in checkboxlist

I would like to use a radiobuttonlist in a windows form control but I know
this is not possible because radiobuttonlist s are only available in web forms.

I am trying to use a checkboxlist instead and I am encountering problems. I
do not want multiple checks.

Any help is highly appreciated.
Dec 5 '05 #1
4 3117
adiweb,

Why not use the RadioButton class? It will give you the same thing that
the web control does.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"adiweb" <ad****@discuss ions.microsoft. com> wrote in message
news:8F******** *************** ***********@mic rosoft.com...
I would like to use a radiobuttonlist in a windows form control but I know
this is not possible because radiobuttonlist s are only available in web
forms.

I am trying to use a checkboxlist instead and I am encountering problems.
I
do not want multiple checks.

Any help is highly appreciated.

Dec 5 '05 #2
Aren't radiobuttonlist s only for web forms. I am not creating a web form. I
am creating a windows form.

Thanks a bunch for the quick response.

"Nicholas Paldino [.NET/C# MVP]" wrote:
adiweb,

Why not use the RadioButton class? It will give you the same thing that
the web control does.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"adiweb" <ad****@discuss ions.microsoft. com> wrote in message
news:8F******** *************** ***********@mic rosoft.com...
I would like to use a radiobuttonlist in a windows form control but I know
this is not possible because radiobuttonlist s are only available in web
forms.

I am trying to use a checkboxlist instead and I am encountering problems.
I
do not want multiple checks.

Any help is highly appreciated.


Dec 5 '05 #3
There is a RadioButton class in the System.Windows. Forms namespace...
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"adiweb" <ad****@discuss ions.microsoft. com> wrote in message
news:5B******** *************** ***********@mic rosoft.com...
Aren't radiobuttonlist s only for web forms. I am not creating a web form.
I
am creating a windows form.

Thanks a bunch for the quick response.

"Nicholas Paldino [.NET/C# MVP]" wrote:
adiweb,

Why not use the RadioButton class? It will give you the same thing
that
the web control does.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"adiweb" <ad****@discuss ions.microsoft. com> wrote in message
news:8F******** *************** ***********@mic rosoft.com...
>I would like to use a radiobuttonlist in a windows form control but I
>know
> this is not possible because radiobuttonlist s are only available in web
> forms.
>
> I am trying to use a checkboxlist instead and I am encountering
> problems.
> I
> do not want multiple checks.
>
> Any help is highly appreciated.


Dec 5 '05 #4
I would like to use a list. I know that you can create radiobuttons
dynamically in a panel or a groupbox, but it you have a large list, there is
really no control as to how it will be presented in the form.

I would like to have my checkboxlist act like a radiobuttonlist . The
problem is that radiobuttonlist s only exist as web controls. I need a
windows control.

Thanks a bunch for the quick response.

"adiweb" wrote:
Aren't radiobuttonlist s only for web forms. I am not creating a web form. I
am creating a windows form.

Thanks a bunch for the quick response.

"Nicholas Paldino [.NET/C# MVP]" wrote:
adiweb,

Why not use the RadioButton class? It will give you the same thing that
the web control does.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"adiweb" <ad****@discuss ions.microsoft. com> wrote in message
news:8F******** *************** ***********@mic rosoft.com...
I would like to use a radiobuttonlist in a windows form control but I know
this is not possible because radiobuttonlist s are only available in web
forms.

I am trying to use a checkboxlist instead and I am encountering problems.
I
do not want multiple checks.

Any help is highly appreciated.


Dec 6 '05 #5

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

Similar topics

0
4612
by: Stanley J Mroczek | last post by:
I am loading the 5 checkboxlist from a database. I have 5 lists. The first four are interior, exterior, safety and drive train. The fifth is optional options. It is possible the optional option was already selected, if it was selected it would be in one of the first four (interior, exterior, safety and drive train). What I am doing is loading the fifth checkboxlist and then checking to see if it was selected if so, I am trying to remove it...
7
4228
by: localhost | last post by:
A DataGrid with shows a label in one of the columns when in view mode. When in edit mode, I want to show a dropdown, and have the default selection set to what the textbox used to be. Right now the first item in the dropdown is always displayed. Template Code: <asp:TemplateColumn HeaderText="DropDown"> <ItemTemplate> <asp:Label runat="server" Text='<%# DataBinder.Eval
0
1546
by: D. Shane Fowlkes | last post by:
OK - I'm looking for the best approach on how to do this. I have a form page where the user can edit their "Profile" (data) which is in SQL Server. It's your basic company information - address, phone numbers, etc. I also have on the form a CheckListBox which is bound to another table in SQL Server - let's assume it the USA States so there's 50 checkboxes dynamically written to the page. When the user "adds" their data, they check all...
1
1841
by: Ryan Scully | last post by:
Hello I have problem with determining exactly what CheckBoxList element is selected using JavaScript code. When I databind to the checkboxlist it renders it on the page and instead of giving each checkbox a value, it gives it a name and does a <label> tag for the Text of the item, and has nothing about the value anywhere in the rendered code for the checkboxlist. So when I enumerate through the controls on the page in javascript, I can never...
5
13395
by: Patrick.O.Ige | last post by:
I'm binding a CheckBoxlist below in the ItemDataBound(the CheckBoxList is in a Datalist) By doing "li.Selected = True" i can see all the checkBoxes are selected. But what i want is to be able to get a Boolean value TRUE or FALSE when a checkBox is selected. When the checkBoxList was out of the DataList i used "OnSelectedIndexChanged" and it was returning what i wanted but if its in a
2
5237
by: Patrick.O.Ige | last post by:
I have some boolean value(1 or 0 ) in a table and i want a databinded CheckBoxList to present the selected values on the page.. With CheckBox i know i can se the Checked property like so :- <asp:CheckBox id="chk" checked=<% Databind.Eval("This returns 1 or 0")%> runat="server"%> Any help how i can do it using CheckBoxList?
5
1405
by: stephen | last post by:
Hi, I have a place holder and I have a checkboxlist in it? why do i get a "System.NullReferenceException: Object reference not set to an instance of an object." error why I try to get the selected value from it? Thanks, Stephen
0
1191
by: riteshraha | last post by:
I cant retrieve selected item from checkboxlist in asp.net project. when i submit multiple item from checkboxlist it works fine. but when i am trying to edit this items then checkboxlist does not select the previous values that i have selected.It only selects one item. my code which i am using for edit is following: Dim _drArticle As SqlDataReader _drArticle = SqlHelper.ExecuteReader(ConfigurationSettings.AppS ettings("ConnectionString"), _...
0
11016
by: jeremy | last post by:
Had a tough time figuring this one out and couldn't find a good solution, so I thought I would post this and hopefully it will help someone out. When using DataBind to dynamically bind a list to the CheckBoxList control in ASP .NET, I had a hard time figuring out how to dynamically select the items that needed to be selected. Specifically, I was displaying checkboxes for Roles, and I wanted to check the boxes of the roles that were...
0
9607
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10395
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10408
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10137
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9211
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7673
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5561
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5700
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3874
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.