Atlanta Custom Software Development 

   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
VB VB (1647)
VB.net VB.net (736)
C# C# (15)
ASP.net ASP.net (779)
ASP ASP (41)
VC++ VC++ (25)
PHP PHP (0)
JAVA JAVA (4)
JScript JScript (5)
  Database
» SQL Server (708)
» ORACLE (5)
» MySQL (0)
» DB2 (0)
Automation
» C/C++/ASM (11)
» Microcontroller (1)
» Circuit Design (0)
OS/Networking
» Networking (5)
» Unix/Linux (1)
» WinNT/2k/2003 (8)
Graphics
» Flash (0)
» Maya (0)
» 3D max (0)
» Photoshop (0)
Links
» ASP.net (2)
» PC Interfacing (1)
» Networking (4)
» SQL Server (4)
» VB (23)
» VB.net (4)
» VC (3)
» HTML/CSS/JavaScript (10)
Tools
» Regular Expr Tester
» Free Tools

(Page 1 of 2) 49 Result(s) found 

How to Autosize ListView columns ?
Total Hit (6139) This demo will show you how to auto fit all ListView items. «b»Step-By-Step Example«/b» - Create a standard exe project - Add ListView control on the form1. To add ListView control you need to add reference to Microsoft Windows Common Control 5.0 (Click Project->Components) - Place the follo ....Read More
Rating
This is a link to a different site Tutorial - ListView Control Introduction
Total Hit (509) The list view control is basically and advanced ListBox. This control allows you to add rows of data, but it also supports large and small icons, multiple columns, automatic label edit, column re-order, hot-tracking, the four main modes that you see in explorer: Icon - Displays items with large i ....Read More
Rating
This is a link to a different site How to Set Item Indentation in a ListView
Total Hit (188) Many people erroneously believe that the 'control' used in displaying hierarchical data such as Outlook Express' news reader view is a treeview control with columns. Actually, the control is a ListView taking advantage of the comctl version 4-specific Indent member of the LV_ITEM structure. This pag ....Read More
Rating
This is a link to a different site How to Show SubItem Icons in the ListView
Total Hit (182) In perhaps the strangest (and most useless) of extended example, this code adds to each subitem the same icon displayed as the main item icon. I have yet to determine how (or if) a subitem-specific icon can be shown instead of duplicating the main item icon, or frankly, why one would ever want this ....Read More
Rating
This is a link to a different site How to Toggle a Checkbox in a ListView
Total Hit (170) The routines here set and retrieve checked ListItems from a ListView control in report view. Basically, here we are again using the enhanced comctl32.dll functionality, this time using the LVIS_STATEIMAGEMASK and LVIF_STATE to toggle the bits at &H1000 and &H2000. In addition, by using the messag ....Read More
Rating
This is a link to a different site Simulating a TopIndex Property for a ListView
Total Hit (183) A listview control's EnsureVisible method provides a means to bring a referenced item into view. Ditto, the LVM_ENSUREVISIBLE message simply "ensures that a list-view item is either entirely or partially visible, scrolling the list-view control if necessary." If the item of interest is back up t ....Read More
Rating
This is a link to a different site Subclassing Listview Scrollbar Messages
Total Hit (363) When it is necessary for your application to maintain synchronization between two or more Listview controls - or two or more List boxes for that matter - as the user interacts with the primary ListView's control's scrollbar, subclassing must be used in order to determine the user's interaction refle ....Read More
Rating
This is a link to a different site Using the ListView Checkbox
Total Hit (364) By popular demand, here are several methods you can employ to perform a variety of ListView check box-related operations. Setcheck: turns on the checkbox for the item passed as the value in the textbox. GetChecked: displays a MsgBox with a list of currently-selected checked items and their List ....Read More
Rating
This is a link to a different site Definitions of the ListView API Members
Total Hit (325) This method is intended for Visual Basic 5 or Visual Basic 6 where the Common Control library used is the MSComCtl 5 version (comctl32.ocx). Because the VB6-specific mscomctl.ocx (Common Controls 6) is a complete implementation of comctl32.dll and not reliant on the version of comctl32.dll installed ....Read More
Rating
This is a link to a different site ListView Demo 1 - Obtaining the File Path
Total Hit (291) This page details the code required to construct the base form, and the code necessary to retrieve the user's selection using the Windows Browse dialog. When the demo is completed, the final app will retrieve the users selection and populate the listview with selected files from that folder, comp ....Read More
Rating
This is a link to a different site ListView Demo 2 - Populating the ListView
Total Hit (533) This page details the code required to populate the listview control with files matching the selected file spec using the APIs FindFirstFile, FindNextFile and the WIN32_FIND_DATA type. When the demo is completed, the final app will retrieve the users selection and populate the listview with selec ....Read More
Rating
This is a link to a different site ListView Demo 3 - Adding Sorting Functionality
Total Hit (315) This page adds a popup menu and the routines necessary to sort and change list views. When the demo is completed, the final app will retrieve the users selection and populate the listview with selected files from that folder, complete with associated icons, file name, file type, file size and cre ....Read More
Rating
This is a link to a different site ListView Demo 4 - Adding the Associated Icons
Total Hit (308) By far the most complicated code yet, this page adds the code necessary to retrieve the Windows associated icon for a given file, assign it to an imagelist dynamically, and use it to display with the file in the listview. Among the features of the method detailed here is the reuse of an icon if it h ....Read More
Rating
This is a link to a different site Autosizing ListView Columns via API
Total Hit (640) The ListView control in both VB5 and VB6 implementations supports SendMessage with the LVSCW_AUTOSIZE and LVSCW_AUTOSIZE_USEHEADER messages to cause the ListView to adjust its column widths to maximize data display. This page shows how to use these messages to resize the columns to fit the longest c ....Read More
Rating
This is a link to a different site Creating a Ledger-Style Listview Report Background
Total Hit (396) This page takes a different approach based on the Picture property of the VB5 and VB6 listviews. With this demo, picture box properties are set to match the size and font of the listview. The demo then draws two filled rectangles inside the picture box corresponding to ledger colours specified, and, ....Read More
Rating
This is a link to a different site Customizing the ListView's Appearance via API
Total Hit (672) Once again, the SendMessage API, in conjunction with the new extended style flags for the ListView control, provides a means to customize the appearance of the listview common control in a Visual Basic application. By combining the new LVBKIMAGE structure (Type), and specifying the LVBKIF_SOURCE_U ....Read More
Rating
This is a link to a different site Detecting ListView SubItem Clicks in Normal And FullRowSelect Mode
Total Hit (318) This page demonstrates using the LVHITTESTINFO type along with the LVM_SUBITEMHITTEST message to determine where on the control the mouse was clicked, regardless of the view mode or whether the FullRowSelect feature has been enabled (Label1). The code is provided in the MouseDown event to both take ....Read More
Rating
This is a link to a different site Determining a ListView's Visible Item Count
Total Hit (559) This shows a quick call you can add to any ListView code to determine the number of currently-visible ListItems in the control when in Report mode. By calling SendMessage with the LVM_GETCOUNTPERPAGE message, the call returns the number of items that can be completely contained in the visible area o ....Read More
Rating
This is a link to a different site Highlighting a Listview Report Column
Total Hit (524) Just as the picture property was used in Creating a Ledger-Style Listview Report Background to simulate a ledger-style background for the listview, this code provides a means to highlight the data in a specific column in the control using the same technique. To do this, the the default background c ....Read More
Rating
This is a link to a different site Highlighting and Maintaining a Listview Report Column through Subclassing
Total Hit (298) This is a modification of the code at to add subclassing of the listview control to allow tracking of ColumnHeader adjustments to maintain the correct column width as the columns are resized. For a complete description of the techniques used, see the related links above. ....Read More
Rating
This is a link to a different site How to Automatically Select (Track) a ListView Item
Total Hit (507) By setting a ListView extended style bit using the API SendMessage with the message LVS_EX_TRACKSELECT, the ListView action changes. While a cursor is moving over the listview items, it is highlighted in coloured text (look at the line below the selection in the illustration.) If the cursor remains ....Read More
Rating
This is a link to a different site How to Add Checkboxes to a ListView
Total Hit (500) This page demonstrates adding the ability to have checkmarks to the left of the item icon in report view. Under Win95 the check boxes are not not pretty. By setting a ListView extended style bit using the API SendMessage with the message LVS_EX_CHECKBOXES, the ListView rows will have a left-most ....Read More
Rating
This is a link to a different site How to Add Images to a ListView Header
Total Hit (214) In most Windows applications, a visual indication of the sorting direction of the currently active listview column header is indicated by an up or down arrow. This functionality has previously been unavailable to the Visual Basic developer. The method detailed here demonstrates the steps to add your ....Read More
Rating
This is a link to a different site How to Change the ListView Header Style
Total Hit (724) Depending on the needs of your application, the standard header font of a listview may prove inadequate for your needs. Unfortunately, the listview API structures and constants do not provide a direct means to specify the font attributes of the header. But by using several standard API functions not ....Read More
Rating
This is a link to a different site How to Determine Selected ListItems
Total Hit (478) A quick routine to demonstrate using SendMessage with LVM_GETSELECTEDCOUNT and LVM_GETNEXTITEM messages to traverse a listview to retrieve the indices to the selected items in a MultiSelect control. Also contains a portion of the LVM_SUBITEMHITTEST code from How to Deselect ListItems on Clicking a L ....Read More
Rating
This is a link to a different site How to Deselect ListItems on Clicking a Listview's White Space
Total Hit (160) A common complaint with the Listview control is that it always returns a SelectedItem even when no item has been selected, or when you programmatically attempt to deselect everything using the ListView's intrinsic commands.
Rating
This is a link to a different site How to Display Grid Lines in a ListView
Total Hit (471) By setting a ListView extended style bit using the API SendMessage with the message LVS_EX_GRIDLINES, the ListView columns and rows will be separated by a grey grid line.
Rating
This is a link to a different site How to Programmatically Select and Deselect All ListItems
Total Hit (559) Using conventional methods, selecting and deselecting all items in a ListView typically involves iterating through the ListItems collection to set each item's selected property. By utilizing the SendMessage API with LVIS_SELECTED, this monotony can be reduced to a single call. Note that this meth ....Read More
Rating
This is a link to a different site How to Reorder ListView Columns Programmatically
Total Hit (547) We have seen how to allow the user to reorder columns by sending the HEADERDRAGDROP message. The listview control provides another means to reorder the report view columns - programmatically via the COLUMNORDERARRAY message. This page demonstrates this technique. The principle is simple. We dim ....Read More
Rating
This is a link to a different site Extending the functionality of the VB ListView controls
Total Hit (849) The "ListView" control in both Comctl32.ocx and Mscomctl.ocx is simply a wrapper that superclasses (encapsulates) the real "listview" common control in Comctl32.dll. This allows the real listview common control messages and definitions to be used to override almost every aspect of the VB ListView co ....Read More
Rating


(Page 1 of 2) 49 Result(s) found  1 2

Recommanded Links

 

Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  Blogs

© 2008 BinaryWorld LLC. All rights reserved.