473,322 Members | 1,431 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,322 software developers and data experts.

Combobox with checked list box.

Can anyone help me about how to create combo box with its items as
checked boxes or radio buttons. This has to be done in C#. I have seen
something similar to this named custom combo boxes but they are in MFC
I have to remain constrained only in C#.
I have tried to add checked listbox in combobox drop down list but it
is showing in text format i.e. name of the control added, if I change
display property of combobox with some property of the object
referenced by the datasource of combobox then nothing is visible in
drop down list of combobox.

Jan 15 '07 #1
2 7049
Hi,

This topic came up last thursday under the name "How to multiselect
entries in drop down" a description on how to create a checkable ComboBox
is described there.
On Mon, 15 Jan 2007 06:21:13 +0100, <sa*************@gmail.comwrote:
Can anyone help me about how to create combo box with its items as
checked boxes or radio buttons. This has to be done in C#. I have seen
something similar to this named custom combo boxes but they are in MFC
I have to remain constrained only in C#.
I have tried to add checked listbox in combobox drop down list but it
is showing in text format i.e. name of the control added, if I change
display property of combobox with some property of the object
referenced by the datasource of combobox then nothing is visible in
drop down list of combobox.


--
Happy Coding!
Morten Wennevik [C# MVP]
Jan 15 '07 #2
Hi Morten,

This is rely fantastic solution. This can serve the purpose. But surely
this will be the last solution for me.
Is there any way to replace combobox list view by checkedlistbox. This
can be done in C++ with help of subclassing. Can it be done here with
help of subclassing.

Regards,
Saurabh Jain.

Morten Wennevik [C# MVP] wrote:
Hi,

This topic came up last thursday under the name "How to multiselect
entries in drop down" a description on how to create a checkable ComboBox
is described there.
On Mon, 15 Jan 2007 06:21:13 +0100, <sa*************@gmail.comwrote:
Can anyone help me about how to create combo box with its items as
checked boxes or radio buttons. This has to be done in C#. I have seen
something similar to this named custom combo boxes but they are in MFC
I have to remain constrained only in C#.
I have tried to add checked listbox in combobox drop down list but it
is showing in text format i.e. name of the control added, if I change
display property of combobox with some property of the object
referenced by the datasource of combobox then nothing is visible in
drop down list of combobox.

--
Happy Coding!
Morten Wennevik [C# MVP]
Jan 16 '07 #3

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

Similar topics

7
by: Nicolae Fieraru | last post by:
Hi All, I am trying to change the rowsource of a combobox when I click on it. I played with many events, associated with the form and the combobox, but still haven't figured out what is the way...
4
by: Beeeeeeeeeeeeves | last post by:
I have an ownerdrawn combo box which I am drawing with an image and some text, this is all working beautifully apart from the difference in the Brush I have to draw the background and the text with...
1
by: Beeeeeeeeeeeeves | last post by:
I have an ownerdrawn combo box which I am drawing with an image and some text, this is all working beautifully apart from the difference in the Brush I have to draw the background and the text with...
9
by: Jason Simard via .NET 247 | last post by:
Hi, Does anyone know a way to make a combobox "read-only", similar to the read-only property of a textbox? In essence, make a combobox readonly...making the combobox text not gray out but be...
30
by: dbuchanan | last post by:
ComboBox databindng Problem == How the ComboBox is setup and used: My comboBox is populated by a lookup table. The ValueMember is the lookup table's Id and the DisplayMember is the text from a...
0
by: lv2compute | last post by:
I am having a problem with my datagridview. I have a small table that has two columns. The first column is bound to my dataset. The second column is a combobox. I add items to the combobox based on...
6
by: tbrown | last post by:
I have a combobox with items like this: {one,two,three}. The selected index is 0, so "one" appears in the combobox text. When the user drops down the list, and selects "two", for example, I...
3
by: Gerrit | last post by:
Hi, I try to learn programming in c# with databinding controls. Now I have a problem with a ComboBox with the advanced properties for databinding, I want to set the DataSourceUpdateMode to...
3
by: marianowic | last post by:
Hello everyone. The whole day I'm fighting with this, as I seem, problem. I made, based on a listed below article, custon ComboBox with CheckBoxes as items. Everything works greate except hte...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.