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) 36 Result(s) found 

GetNodeRelationship - Check if two nodes are relatives
Total Hit (462) «Code LangId=1» ' Returns a value >0 if Node1 is a parent (or grandparent) of Node2 ' Returns a value <0 if Node1 is a child (or grandchild) of Node2 ' in both cases the number reflects the number of levels ' between the two nodes ' Returns 0 if the two Nodes are the same or ' if they be ....Read More
Rating
GetTreeViewSelNodeHandle - The handle of a TrewView's selected node
Total Hit (933) «Code LangId=1»Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal _ hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, _ lParam As Any) As Long Private Const TV_FIRST = &H1100 Private Const TVM_GETNEXTITEM = (TV_FIRST + 10) Private Const TVGN_CARET = 9 ....Read More
Rating
This is a link to a different site How to Set a Flat ListView Header Style
Total Hit (325) There may be occasions where a flat-looking listview column header suits the design of your application more that the standard default button-style. By obtaining the handle to the header portion of the listview, and toggling its HDS_BUTTON style bits, the header takes on a flat appearance. Setting ....Read More
Rating
This is a link to a different site How to Track Cursor Movement in a ListView
Total Hit (237) The methods presented here are a bit different. The first (Check1) causes the mouse cursor to change into a hand, and as it moves over the ListView items, causes the item below to become underlined as a visual aid. This is similar to the visual clue in Internet Explorer when a hyperlink is encounter ....Read More
Rating
This is a link to a different site Tying a Treeview and Listview Together via the Tag Property
Total Hit (268) Unlike most of the other treeview and listview code examples here on VBnet, this one doesn't use APIs. Its creation was prompted by a newsgroup question by someone wanting to have a treeview and listview with similar items, and to behave such that when the user selected a treeview item, the correspo ....Read More
Rating
This is a link to a different site Changing a VB Toolbar to a Rebar-Style Toolbar
Total Hit (255) Here's a quick routine to set a standard VB toolbar to a IE-style Rebar style control (aka 'coolbar') for IE4 Active Desktop users. The illustration shows the original and flattened style for the same toolbar. Place a toolbar with images (and optionally text), and add a placeholder. Set the place ....Read More
Rating
This is a link to a different site Fixing the IE5/MsComCtrl 5 Toolbar Problem
Total Hit (286) After the introduction of IE5, users began complaining that their code, which had previously created flat toolbars, failed on systems with IE5 installed. In addition, whenever the text (caption) for a button was changed through code, and the new caption text length differed from that being replaced, ....Read More
Rating
This is a link to a different site Using the ChooseColor Common Dialog API
Total Hit (436) Although the API uses a structure to pass parameters to the ChooseColor API, the dialog can be shown by providing just the flags, hwndOwner, lStructSize and lpCustColors members completed. Other options, such as a hook, can be added to provide additional functionality such as positioning, custom cap ....Read More
Rating
This is a link to a different site Centering and Customizing the ChooseColor Common Dialog
Total Hit (451) Just as the GetOpen/GetSaveFileName APIs provide for inserting a hook against the file dialog's creation, so too does the ChooseColor API.
Rating
This is a link to a different site Using the GetOpenFileName Common Dialog API - Overview
Total Hit (638) This page details the descriptions of Windows GetOpenFileName and GetSaveFileName API methods. The related demo code pages show how to call the APIs, as well as demonstrating how to retrieve the constituent parts of the file string returned. To access both of the file common dialogs, the OPENFILEN ....Read More
Rating
This is a link to a different site Using the GetOpenFileName Common Dialog API
Total Hit (446) This page provides the detailed code and descriptions required for the Common Dialog GetOpenFileName API, as well as showing how to retrieve the constituent parts of the file string returned. Code comments are at a minimum here. For detailed descriptions of the OPENFILENAME structure used and the ....Read More
Rating
This is a link to a different site Using the GetSaveFileName Common Dialog API
Total Hit (544) This page provides the code required for the Common Dialog GetSaveFileName API method. OPENFILENAME member descriptions, as well as commented code, are covered in the pages above. Except for the Flags and API name, the code is pretty well a duplicate of the GetOpenFileName code. ....Read More
Rating
This is a link to a different site Centering the Open & Save Common Dialogs Using Callbacks
Total Hit (257) The Common Dialog API provides a simple and powerful replacement to the Common Dialog control for projects using the file open or save methods. Not burdened by the baggage of properties, the API solutions also offer a significant performance increase. And all this comes in calls that still allow man ....Read More
Rating
This is a link to a different site Centering the Open & Save Common Dialogs Using Callbacks, Advanced
Total Hit (380) Centering the Open & Save Common Dialogs Using Callbacks showed just how simple implementing a window hook for the OPENFILENAME structure can be. Here we expand upon that same code to provide additional positioning options - centred to the screen, to the parent form, or allow the dialog to take its ....Read More
Rating
This is a link to a different site Hooking the Open & Save Common Dialogs To Manipulate Components
Total Hit (534) Now that you're an expert at centering a common dialog using hooks its time to look at customizing other aspects of the dialog window. A frequent request is a method to set custom captions for the various buttons and static fields (labels) on the dialog. This page addresses this request. Again the ....Read More
Rating
This is a link to a different site Displaying Modal Form Activity on a Parent Form VB Progress Bar
Total Hit (315) This is simple code that demonstrates how to use a normal VB progress bar on a parent form (SDI or MDI) to track the activity being performed in another form, even when that form is modal. The demo also shows how to call SetParent to embed the progress bar inside the status bar panel. ....Read More
Rating
This is a link to a different site Displaying Modal Form Activity on a Parent Form 'PhotoShop' Progress Bar
Total Hit (293) Like its sister example, this shows how to call a progress bar housed on a parent form (SDI or MDI) to track activity being performed in another form, even when that form is modal. Unlike the VB progress bar demo however, this demo is for those preferring to use the 'PhotoShop' style progress bar th ....Read More
Rating
This is a link to a different site Adding a VB Toolbar to a VB StatusBar
Total Hit (294) This code was prompted by a newsgroup request for code to place a VB command button inside a VB statusbar such that the button reacted normally to events yet was contained inside the status bar panel area. Attempts to use SetParent against the command button worked to re-parent the control, however ....Read More
Rating
This is a link to a different site Creating a Common Control Status Bar - Overview
Total Hit (257)
Rating
This is a link to a different site Creating a Common Control Status Bar via API
Total Hit (228) In this second article written for VBnet by Brad Martinez, Brad works out the magic behind the Win32 Status Bar common control (window) exposed by the common control library Comctl32.dll without the use of Comctl32.ocx. Subsequent pages will introduce more functionality in creating the control. T ....Read More
Rating
This is a link to a different site How to Determine Re-Ordered Column Positions in a ListView
Total Hit (485) Sending the listview extended style message LVS_EX_HEADERDRAGDROP enables repositioning/reordering of a ListView's main and subitem columns. However, this does not alter the index of the columns to match their new physical locations. VB remains unaware that repositioning has taken place (since it ....Read More
Rating
This is a link to a different site Creating the Common Control Initialization Module
Total Hit (286) This file will be required to be added to the existing project for all common control API methods detailed here that use the API to actually create the common control (as opposed to using the Visual Basic Common Control). The BAS module will provide the mechanism to initialize the comctl32.dll, rega ....Read More
Rating
This is a link to a different site Creating a Common Control Header via the API
Total Hit (245) If you're like myself, you've probably wished that some of Visual Basic's other controls provided the look (and functionality) of a ListView's header. In this example, we'll use the API to create a real header control and position it overtop a list or textbox. ....Read More
Rating
This is a link to a different site Adding a VB Progress Bar to a VB StatusBar
Total Hit (413) Normally, to calculate the position the progress bar should occupy in the status bar panel, one would calculate the panel position relative to the top left corner of the form, and adjust the coordinates appropriately. However, I found this can be circumvented by temporarily changing the status bar ....Read More
Rating
This is a link to a different site Changing Colours of a VB ProgressBar
Total Hit (512) Here's a quick SendMessage method to change the bar and / or backcolours of both a VB5 or VB6 progress bar, or an API-created progress bar. Note that on XP, using the 'Silver' theme, the default bar colour is grey, not the usual blue.
Rating
This is a link to a different site Creating a Custom PhotoShop-Style ProgressBar
Total Hit (294) The routines on this page were originally developed to overcome display limitations of the original VB3 SSPanel FloodPercent control, namely use of and justification of text and the positioning the control as a member of a status panel. The routine was originally developed in VB3 and has been update ....Read More
Rating
This is a link to a different site Creating a Custom PhotoShop-Style ProgressBar in a MDI App
Total Hit (253) The routine here is based on code originally developed to overcome some of the display limitations of the original VB3 SSPanel FloodPercent control, namely justification of text and positioning as a member inside a status panel. The routine was originally developed in VB3, and has been updated for u ....Read More
Rating
This is a link to a different site Creating a Common Control Progress Bar - Overview
Total Hit (416) The following is an explanation of the messages and structures used by the Windows Progress Bar common control, written by Brad Martinez and provided for distribution on VBnet. The Windows Common Controls API continues to grow as more features are added. Currently, comctl32.dll contains the follo ....Read More
Rating
This is a link to a different site Creating a Common Control Progress Bar via API
Total Hit (273) The advantages of this implementation are obviously beneficial. First and foremost the need to distribute Comctl32.ocx with an application is eliminated, reducing distribution size. Also an application's memory footprint is significantly reduced by not loading an ActiveX control. And finally, there ....Read More
Rating
This is a link to a different site Tiling an Image Across a Form
Total Hit (240) How to tile an image across the background of any form (except MDI parents). No APIs needed.
Rating


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

Recommanded Links

 

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

© 2008 BinaryWorld LLC. All rights reserved.