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
Adding Checkboxes to a list control     
Total Hits: 129  |  Today: 0Author: Eran Yariv      Rating:  
Read Reviews | Write Review |  Your Rating: 

Basically, there are two options: either you use owner drawn list view controls and draw your own check boxes as small images OR you can use the new control introduced in Microsoft's IE 3.0. To use the new features of a list view control you must install IE 3.0 (or above) to get the newest version of COMCTL32.DLL (the common controls library). This control introduces some new flags in the ListView style and adds accepts some macros defined in the windows header files. Bear in mind, the new flags...

ListBox ControlTemplate Example     
Total Hits: 42  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

Controls in Windows Presentation Foundation (WPF) have a ControlTemplate that contains the visual tree of that control. You can change the structure and appearance of a control by modifying the ControlTemplate of that control. There is no way to replace only part of the visual tree of a control; to change the visual tree of a control you must set the Template property of the control to its new and complete ControlTemplate....

ListBoxItem ControlTemplate Example     
Total Hits: 39  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

Controls in Windows Presentation Foundation (WPF) have a ControlTemplate that contains the visual tree of that control. You can change the structure and appearance of a control by modifying the ControlTemplate of that control. There is no way to replace only part of the visual tree of a control; to change the visual tree of a control you must set the Template property of the control to its new and complete ControlTemplate....

Building a Custom Validator Control - Part 1     
Total Hits: 532  |  Today: 0Author: Donny Mack      Rating:  
Read Reviews | Write Review |  Your Rating: 

Well, the DotNetJunkies are at it again. We are starting our next book on building custom .NET server controls. So to follow with this category I'll be writing server control articles now and again. We'll be starting off slow with this article which illustrates how to derive your custom control from a base class and add your own features. In this article we'll demonstrate how to derive a class from the BaseValidtor class to create your own validator control. Why would you do this? Well, in short...

Creating a Console ListBox in C#  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Vulpes      Rating:  
Read Reviews | Write Review |  Your Rating: 

C# developers who are interested in console programming are often frustrated by the lack of user interface features which the console has compared to Windows Forms and WPF applications.

Well, despite the limitations of its text based interface, you can with a bit of effort produce console versions of some of the simpler windows 'controls' and in this article I'd like to show you how to produce a listbox....

Transparent ListBox  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Ali Rafiee      Rating:  
Read Reviews | Write Review |  Your Rating: 

Any experienced Windows programmer can tell you that transparency is not a trivial task in Windows. A transparent ListBox control is no exception. Actually ListBoxes are a bit harder than other controls. And the reason is the way ListBoxes do their scrolling. But overall it is a pretty simple concept to implement....

CTreeComboBox: A Multiline Tree Combo Box that supports XML  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: John Melas      Rating:  
Read Reviews | Write Review |  Your Rating: 

This articles presents the CTreeComboBox which should actually have been called CIconMultilineXmlTreeComboBox.

It's a CButton derived class with two major features:

* XML file support: The control displays a tree control as a drop down window. The tree control loads its data from XML files!
* Multiline edit box: The edit box of the combo box can have the 'multiline' style so that it can support the selection of many items from the tree!...

An Enhanced CCheckComboBox  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Magerusan Grigore Cosmin      Rating:  
Read Reviews | Write Review |  Your Rating: 

I wanted a control with both the functionality of a combo and of a tree with checkboxes. Such a control would act like a combo showing a dropdown and also allowing checking and fast checking items.

By the time I finished coding I saw Magnus Egelberg's "CCheckComboBox" class, but I realize that my control has several advantages which anyway would had required the class to be completely rewrote....

Category Listbox  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Joshua Quick      Rating:  
Read Reviews | Write Review |  Your Rating: 

This control mimics the behavior of Microsoft Outlook's categorized listbox. It displays a list of categories and each category has its own list of items. Categories can be opened to reveal their items or closed to hide them. The idea is to help improve list organization and to make it easier for users to find what they are looking for....

DriveComboBox  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: odah      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this small example I used Directory.GetLogicalDrives() method to retieve the names of all logical drives.

Than I used GetDriveType(string driveLetter) method from kernel32.dll to get types of those drives (CDROM,FLOPPY,Local Disc etc.) so I knew what icon should be displayed next to the drive name....

ComboBox bold - Combo box with bold text items and optional icon.  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: Alex Hazanov      Rating:  
Read Reviews | Write Review |  Your Rating: 

This is simple extension to the basic MFC combo box....

MultiColumnComboBoxEx: An Extended Data-Bound Multiple Column ComboBox  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: HU Lihui      Rating:  
Read Reviews | Write Review |  Your Rating: 

There are already some multiple column ComboBox controls on The Code Project, such as A data-bound multi-column combobox (Nishant Sivakumar, updated Jul 2007) and Searchable MultiColumn ComboBox with Linked TextBox (Darryl Caillouet, updated Jan 2008). These two customized controls named as MultiColumnComboBox have one bug and some shortcomings:

* One bug: Must click two times when Items is empty and DrawMode is OwnerDrawVariable. The reason may be that the first click will drop down ...

Font Combo  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Chris Losinger, Dave Schumann      Rating:  
Read Reviews | Write Review |  Your Rating: 

This control gives you a font selection combo with font preview and optional sample text. It also features self-adjusting drop-width, to handle any size font name and sample text....

Creating a Chained dropdownlist using jQuery and XML  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: Mohd Arshad (Sam)      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article is about to create a Chained Drop Down Menu where we want to represent data from hierarchical data sets. Here, I’ll be discussing the method to populate server side HTML drop down lists using client side jQuery script. My database is a simple XML data file. The jQuery provides concrete support to XML data files by calling AJAX. AJAX call using jQuery is much faster in response and it gives optimum support to most of ASP.NET controls....

A Windows.Forms.ComboBox with Item ToolTips for 32 bit Windows XP (SP2)  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Richard Ashman      Rating:  
Read Reviews | Write Review |  Your Rating: 

This is a quick article to show how to create a hybrid Windows.Forms.ComboBox to solve the problem where an item's text width exceeds the width of the drop-down area....

A Custom Group Combo Box  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Brett R. Mitchell      Rating:  
Read Reviews | Write Review |  Your Rating: 

During the development of a larger application I found myself needing a CCombobox type control that could have groupings inside of it. I wanted the control to resemble more of a button apparatus but with a drop down that a user could select from...hence the CDropButton class was created. You may have seen this type of control used before in Microsoft Money. It's an excellent way to group items in a drop list....

XTipComboBox - Display tooltips for combobox  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: Hans Dietrich      Rating:  
Read Reviews | Write Review |  Your Rating: 

XTipComboBox displays tooltips for a combobox, just like tooltips are displayed for a tree control whose items are too long to fit in tree control's client area. When a listbox item in combobox is too long to fit in the listbox, a tooltip will be displayed that allows viewing of complete text. Similarly, a tooltip is displayed when text in combo's edit box is too wide for edit box....

Fast Drive ComboBox  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: Michael B. Hansen      Rating:  
Read Reviews | Write Review |  Your Rating: 

Recently, I needed some way of displaying the logical drives on the computer and only the logical drives. I didn't think it would be any problem through the use of either OpenFileDialog or FolderBrowserDialog, but I quickly realized that these didn't do what I wanted them to do.

I, therefore, turned to CodeProject to see if a control existed here that could do the job. I found several (An "Explorer-Style" TreeView Control, DriveComboBox, Drive Box) - but none of them solved my problem to ...

History ComboBox  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Paul Vickery      Rating:  
Read Reviews | Write Review |  Your Rating: 

The History Combo class CHistoryCombo is based on CComboBox, and includes support for keeping item history, including reading from and saving to the registry. It can also be used to display the contents of an existing CRecentFileList object....

How to create a custom ComboBox from scratch  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: bbbnova      Rating:  
Read Reviews | Write Review |  Your Rating: 

A few weeks ago, I spent lots of time searching the web for a fully customized ComboBox which I could use in an application of mine. I didn't find any good looking free ones. I don't pretend that there is no such control created, but my search fault inspired me to build one myself. The following code example I have included is not exactly what I have in my application, but is a good point to introduce the way a custom combobox can be created....


1  2  3  4  5  6  7  8  9  10  


Disclaimer - Privacy
© 2002-2012 DevASP.net