Checked Combobox for .NET?
-
Hello, I'm looking for a checked combobox which I can use on a search form. Basically I want to search for "items" with one or more statuses and using a checked combobox would be a compact way of allowing users to do that. But I haven't found one yet... Couldn't even find one on CodeProject :( Anyone seen one out there? Thanks in advance, Daffrey
-
Hello, I'm looking for a checked combobox which I can use on a search form. Basically I want to search for "items" with one or more statuses and using a checked combobox would be a compact way of allowing users to do that. But I haven't found one yet... Couldn't even find one on CodeProject :( Anyone seen one out there? Thanks in advance, Daffrey
First off, I've got to say that you should really do a web search before asking questions. This is not hard to find. Google is your friend. That being said, there is a native control in .NET called CheckedListBox. It isn't a combo, but will get the job done. Having checkboxes in a combo is a little counter intuitive, anyhow (which is why Microsoft doesn't provide one). Take a look here to learn more about the CheckedListBox: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vboricheckedlistboxctltasks.asp[^] -Matt ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall
-
First off, I've got to say that you should really do a web search before asking questions. This is not hard to find. Google is your friend. That being said, there is a native control in .NET called CheckedListBox. It isn't a combo, but will get the job done. Having checkboxes in a combo is a little counter intuitive, anyhow (which is why Microsoft doesn't provide one). Take a look here to learn more about the CheckedListBox: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vboricheckedlistboxctltasks.asp[^] -Matt ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall
Thanks for the reply. Google normally is my friend and I always turn to it first before posting questions anywhere, but I have searched on Google several times trying to find a checked combobox for .NET and have come up with zero every time. I've searched on 'checked combobox', 'checked combobox .net', '"checked combobox" .net'. I've found references to checked comboboxes for Access and there are several C++ versions around, and COM components around but I still haven't found one written in C# or VB.NET. I'm sure there is one out there somewhere for .NET. As for the CheckedListBox, I already know about that but it is not what I am after... Although I may yet have to utilise it by displaying it when a button is clicked on to simulate a drop down. By the way...what is counter intuitive about a checked combobox? As long is there are not too many entries they are very good and for my purposes there wouldn't be anymore than 30 items. Don't get me started on what Microsoft provide in their "Standard Control" offerings... they can't even get a DatePicker (Handling Null Dates) or a TabControl (Can't hide tabs, Can only insert tabs at the end) right in .NET . Anyhoot, The search goes on... Daffrey
-
Thanks for the reply. Google normally is my friend and I always turn to it first before posting questions anywhere, but I have searched on Google several times trying to find a checked combobox for .NET and have come up with zero every time. I've searched on 'checked combobox', 'checked combobox .net', '"checked combobox" .net'. I've found references to checked comboboxes for Access and there are several C++ versions around, and COM components around but I still haven't found one written in C# or VB.NET. I'm sure there is one out there somewhere for .NET. As for the CheckedListBox, I already know about that but it is not what I am after... Although I may yet have to utilise it by displaying it when a button is clicked on to simulate a drop down. By the way...what is counter intuitive about a checked combobox? As long is there are not too many entries they are very good and for my purposes there wouldn't be anymore than 30 items. Don't get me started on what Microsoft provide in their "Standard Control" offerings... they can't even get a DatePicker (Handling Null Dates) or a TabControl (Can't hide tabs, Can only insert tabs at the end) right in .NET . Anyhoot, The search goes on... Daffrey
I guess the bottom line is that if you don't like the Microsoft way, you've gotta write your own. Good luck. -Matt ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall