|
|
|
|
|
| | Total Hits: 129 | Today: 0 | Author: Eran Yariv | 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... |
| | Total Hits: 42 | Today: 0 | Author: Microsoft Corporation | 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.... |
| | Total Hits: 39 | Today: 0 | Author: Microsoft Corporation | 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.... |
| | Total Hits: 532 | Today: 0 | Author: Donny Mack | 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... |
| | Total Hits: 0 | Today: 0 | Author: Vulpes | 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.... |
| | Total Hits: 0 | Today: 0 | Author: Ali Rafiee | 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.... |
| | Total Hits: 0 | Today: 0 | Author: John Melas | 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!... |
| | Total Hits: 0 | Today: 0 | Author: Magerusan Grigore Cosmin | 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.... |
| | Total Hits: 0 | Today: 0 | Author: Joshua Quick | 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.... |
| | Total Hits: 1 | Today: 0 | Author: odah | 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.... |
| | Total Hits: 1 | Today: 0 | Author: Alex Hazanov | Rating:  |
| |  This is simple extension to the basic MFC combo box.... |
| | Total Hits: 0 | Today: 0 | Author: HU Lihui | 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 ... |
| | Total Hits: 0 | Today: 0 | Author: Chris Losinger, Dave Schumann | 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.... |
| | Total Hits: 1 | Today: 0 | Author: Mohd Arshad (Sam) | 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.... |
| | Total Hits: 0 | Today: 0 | Author: Richard Ashman | 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.... |
| | Total Hits: 0 | Today: 0 | Author: Brett R. Mitchell | 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.... |
| | Total Hits: 1 | Today: 0 | Author: Hans Dietrich | 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.... |
| | Total Hits: 1 | Today: 0 | Author: Michael B. Hansen | 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 ... |
| | Total Hits: 0 | Today: 0 | Author: Paul Vickery | 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.... |
| | Total Hits: 0 | Today: 0 | Author: bbbnova | 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.... |
|
|
|
|
|
|
|
|
|
|
|
|
|