Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home >Search > Articles & Samples > C-Sharp > Server Controls > List Box Control


Search:
What's New - What's Hot
CheckListBox Based on ListBox that Supports ReadOnly  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: H. Tony      Rating:  
Read Reviews | Write Review |  Your Rating: 

This is based on this article where I extended the code provided by Zhi-Xin Ye in the post to create a CheckListBox that supports ReadOnly unlike CheckedListBox control which can only be disabled....

ToolTipListBox - a list box with tool tips  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: Nishant Sivakumar      Rating:  
Read Reviews | Write Review |  Your Rating: 

I was working on a project where I needed to have a list-box that would show tool tips for items that will not fit within the width of the list-box. Initially I thought there would be a .NET BCL class that would have this facility. I've had forgettable experiences in the past where I'd waste my time writing something that was already available. But this time I found nothing that met my requirements. So I wrote my own list box class derived from the .NET System.Windows.Forms.ListBox class and cal...

A Combobox with bitmaps  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Anneke Sicherer-Roetman      Rating:  
Read Reviews | Write Review |  Your Rating: 

1. Include CBitmapPickerCombo.cpp and CBitmapPickerCombo.h in your project
2. In the resource editor create a regular combobox with at least the following styles: DropList, OwnerDraw Variable, Has Strings
3. Create a control member variable for the combobox in VC's classwizard
4. Replace CComboBox with CBitmapPickerCombo in your dialog's .h file
5. In OnInitDialog use the AddBitmap or InsertBitmap member functions to add CBitmaps (and optional strings) to the combobox...

Let your ListCtrl adjust its column widths automatically     
Total Hits: 97  |  Today: 0Author: PravinSingh      Rating:  
Read Reviews | Write Review |  Your Rating: 

While creating a List Control using CListCtrl class, we need to specify the column width for all the columns in the very beginning, when we have little idea about the width required by the actual text that is going to come in the columns. So we leave it to the user to adjust the widths to see the entire text. This little enhancement over the CListCtrl class makes the column widths auto adjusting to keep the entire text of all the columns visible....

Disabling Close Button (X in top right corner of ControlBox)  Version: 0.00     Price: $0.00  
Total Hits: 9  |  Today: 0Author: charles henington      Rating:  
Read Reviews | Write Review |  Your Rating: 

Disabling Close Button (X in top right corner of ControlBox)...

Conditional Combobox column for datagrid  Version: 0.00     Price: $0.00  
Total Hits: 3  |  Today: 0Author: pravk |      Rating:  
Read Reviews | Write Review |  Your Rating: 

There are times when you need to provide an user interface which is capable of taking input both in freeform (name for eg) and in restricted for like (combobox, for eg. Sex). This control solves this in a easy way....

ListBox With ToolTip Support  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: ran wainstein      Rating:  
Read Reviews | Write Review |  Your Rating: 

I've needed a simple listbox with tool tip support for my project, i couldn't find a listbox derived class that will do job. Salman A Khilji offers tool tip support in his article "List Box with ToolTips", but he his offering a multi-line tool tip which display's a pre-defined string as set in the dialog function. Also, the tips are always shown in the upper right corner....

A multi-check ListBox  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Harry J. Devine      Rating:  
Read Reviews | Write Review |  Your Rating: 

I had a desire/requirement on a recent project to have a CCheckListbox class that allowed for more than one checkbox in front of the string. The 3-state style set by the CCheckListbox simply didn't do what I wanted or needed. I had a list of people who could fall into 2 different categories at the same time. The 3-state style told me that this person fell into one category, but I had to just know WHICH one....

Drag and Drop Listbox Items using OLE  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Ali Rafiee      Rating:  
Read Reviews | Write Review |  Your Rating: 

OLE has made Drag and Drop a piece of cake. It allows two unrelated applications to exchange data in a format that they can both understand, with the help of clipboard formats. Using OLE for drag and drop is a relatively simple task to accomplish. Using MFC, there really isn't much to do but create the appropriate objects and call their appropriate methods. There are three MFC classes that are involved in a Drag and Drop operation. These classes are COleDataSource, COleDropSource, and COleDropTa...

Drive Box  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Gobinath.K.R      Rating:  
Read Reviews | Write Review |  Your Rating: 

A DriveBox control enables a user to select a valid disk drive at run time. This control can be used to display a list of all the valid drives in a user's system. You can create dialog boxes that enable the user to open a file from a list of files on a disk in any available drive. This control is very similar to DriveListBox Control which we are very familiar....

System Drives Browser  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Barretto VN      Rating:  
Read Reviews | Write Review |  Your Rating: 

I developed this project as a learning experience after seeing such a GUI on some FTP Shareware Programs; the Icons and File Types unfortunately have been hardcoded in the project, unlike the ones available on Windows Explorer. The Icons are a part of the project and not picked up from the Windows Operating System. This project uses a ListView to display all the drives (including CD Drive) on the Computer System...

Two ListBoxes - Drag and Drop Example  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Larry1024      Rating:  
Read Reviews | Write Review |  Your Rating: 

This presents a windows form application with two listboxes. Items from the left listbox (listBox1) can be dragged to the right listbox (listBox2). Items in the right listBox2 can be rearranged or removed. Drag and Drop events are trapped and reported in a third listbox and informational label. DragDrop events are heavily instrumented and reported....

Implementing an OwnerDrawn ComboBox  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Senkwe Chanda      Rating:  
Read Reviews | Write Review |  Your Rating: 

Hi there, I've been waiting for ages and ages for someone to kindly post the code for an owner drawn ComboBox but alas, to no avail. That's right, I'm your average, lowly leech and I've been stealing code off CodeProject for a long time now. Well looks like this time I actually had to go write something on my own. My guess is it was too simple a problem for most of you to bother with. But please do keep writing articles for relative beginners because most of us have to start with the simple thin...

Dynamically re-creating a list box  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Paul Vickery      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article is a companion article to my article Dynamically re-creating a combo box. Similarly to the combo box, I frequently find myself needing to switch a list box to or from sorted, or to or from multi select. As with the combo box, changing these styles after creation is something that a listbox does not support. The function presented here will recreate the list box so that style changes take effect. The function will retain all list items, with item data, and the currently selected item...

Dynamically re-creating a combo box  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Paul Vickery      Rating:  
Read Reviews | Write Review |  Your Rating: 

Something which I frequently find myself needing to do is to switch a combo box to or from sorted. This is one reason (though not the main reason) I came up with my Dynamically Switchable Control. However, changing these styles after creation is something that combo-box does not support. This function presented here will recreate the combo box so that style changes take effect. The function will retain all list items, with item data, and the currently selected, or entered, text....

A Logging Listbox Control  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Joseph M. Newcomer      Rating:  
Read Reviews | Write Review |  Your Rating: 

One of the most common questions I hear from programmers who have moved from console-type applications to the GUI world is "How do I use printf to do debug output?" In my first Windows app, a decade ago, I asked myself the same question, and came up with this answer. What I'm showing in this essay and the accompanying code download is the result of a decade of maturing the world's greatest (at least IMNSHO) printf-equivalent. I refer to this in my accompanying essay on the Graphical Developer En...

Parent-Child ComboBoxes  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Yildirim Kocdag      Rating:  
Read Reviews | Write Review |  Your Rating: 

Parent-child ComboBoxes is one of the classical problems in most projects. A brief overview of this problem is:

1. There are two combos.
2. One of them is the parent and the other is the child combo.
3. After the parent one is fired (selected value changed), the child combo should use the selected value of the parent to fill its datasource....

Skin the ComboBox in 3 simple function calls  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Ashok Jaiswal      Rating:  
Read Reviews | Write Review |  Your Rating: 

This is a simple sub classed control from CComboBox that allows you to apply skin to the combobox and its droplist. The skins used can be a pixel wide (for the background and corners of the droplist) to keep the control light....

Office Style Flat ComboBox  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Kirk Stowell      Rating:  
Read Reviews | Write Review |  Your Rating: 

This control easily gives your application the Flat Look that is seen in the Microsoft office products. To use the control, simply add the files CCJFlatComboBox.cpp and CCJFlatComboBox.h to your project. You can use Class Wizard to add the CCJFlatComboBox member variables ( you most likely will have to rebuild the .clw file associated with your project ), or just replace any instance of CComboBox , with CCJFlatComboBox ....

Custom ComboBox  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Bahrudin Hrnjica      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article describes how you can implement a combo box with various popup controls, including a dialog containing any kind of control. The article also shows the implementation of a combo box with the CListCtrl control, MFCGrid control, and a combo box with a popup dialog. As we already know, the combo box control contains two controls inside. The edit control which you can type text into, and a list box control containing string items which you can choose to appear in the edit area of the com...


1  2  3  4  5  6  7  8  9  10  Next >> 


Disclaimer - Privacy
© 2002-2012 DevASP.net