473,748 Members | 2,217 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 3114
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
4219
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
1541
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
1831
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
13394
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
5236
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
1403
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
1189
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
11010
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
8982
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9357
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
9309
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
8235
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
6792
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
6072
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3298
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2205
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.