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 (1648)
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

 

Fill a TreeView control with random data
Total Hit (2218) Every now and then you need to fill a TreeView control with some random data, for example when you want to test a routine and you don't want to write a lot of code just for this secondary task. Here is a recursive routine that does the work for you: «Code LangId=1» ' MaxChildren is the max num ....Read More
Rating
Get full control on the text typed in a TreeView's node
Total Hit (3774) The TreeView control exposes the AfterLabelEdit event to let the programmer validate the text entered in a Node, but there is no way to trap keys as they are typed by the user. This prevents you from discarding unwanted characters while the user types them. You can work around this problem by sub ....Read More
Rating
Get or Set the height of TreeView nodes
Total Hit (3947) In plain VB there is no way to determine or change the height of node elements in a TreeView control. All you need to accomplish both tasks, however, is send the right message to the control. «Code LangId=1» Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal _ hW ....Read More
Rating
Limit the length of the text in a TreeView node
Total Hit (4411) The TreeView control doesn't expose any property that lets you limit the amount of text users can type when editing a Node's label. However, you can do the trick with a couple of SendMessage API calls from within the BeforeLabelEdit event: with the TVM_GETEDITCONTROL message you retrieve the handle ....Read More
Rating
Suppress TreeView's tooltips
Total Hit (3566) By default, all TreeView controls whose version number is 4.70 or higher display the text of the node under the cursor if the node itself isn't completely visible. You can turn off and on this feature by resetting a bit in the control's style, using the following code: «Code LangId=1» Private ....Read More
Rating
ClearTreeViewNodes - Quickly delete all the nodes in a TreeView controls
Total Hit (3309) «Code LangId=1» Private Declare Function SendMessageLong Lib "user32" Alias "SendMessageA" _ (ByVal hwnd As Long, ByVal Msg As Long, ByVal wParam As Long, _ ByVal lParam As Long) As Long Private Const WM_SETREDRAW As Long = &HB Private Const TV_FIRST As Long = &H1100 Private Const TVM_ ....Read More
Rating
CTreeViewEdit - A class for enhanced treeview node editing
Total Hit (4382) «Code LangId=1»'------------------------------------------------------- ' The CTREEVIEWEDIT Class module ' ' This class lets you use a regular TextBox control to ' edit a treeview node's label. All you have to do to ' use this class is adding a TextBox control to the same ' form that hosts the ....Read More
Rating
GetTreeViewFirstVisibleNode - Retrieve the first visible node in a TreeView
Total Hit (3564) «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 TVM_SELECTITE ....Read More
Rating
GetTreeViewNodeHandle - The handle of any node in a TreeView
Total Hit (3264) «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 TVM_GETNEXTITEM = &H110A Private Const TVGN_CARET = 9 ' The handle of any node in a TreeVie ....Read More
Rating
GetTreeViewNodeRect - The bounding rectangle of a TreeView's node
Total Hit (3617) «Code LangId=1» Option Explicit 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 Type RECT Left As Long Top As Long Right As Long Bottom As Long End T ....Read More
Rating
NodeNestingLevel - The nesting level of a TreeView's node
Total Hit (2352) «Code LangId=1»' Returns the nesting level of a TreeView's Node object ' (returns zero for root nodes.) Function NodeNestingLevel(ByVal Node As Node) As Integer Do Until (Node.Parent Is Nothing) NodeNestingLevel = NodeNestingLevel + 1 Set Node = Node.Parent Loop End ....Read More
Rating
SetTreeViewBackColor - Change the background color of a TreeView control
Total Hit (3455) «Code LangId=1» Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As _ Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd _ As Long, ByVal nIndex As Long) As Long ....Read More
Rating
SetTreeViewFirstVisibleNode - Set the first visible node in a TreeView control
Total Hit (3830) «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 TVM_SELECTITEM ....Read More
Rating
Quickly Clear Tree View Control
Total Hit (2125)
Rating
Programmatically Select a Node in TreeView.
Total Hit (3415) This is very easy but tricky. By default HideSelection property of treeview is true. So it confuses many programmer. When you use Treeview.Selected=True and HideSelection is True then it wont show the selection even though node is selected. Check the following example for that ....Read More
Rating
How to retrive only visible items of treeview control?
Total Hit (5833) If you want to retrive only visible item count for treeview control then you can use TreeView1.GetVisibleCount but the problem is this will only return items which are 100% visible so it wont give you exact number. In this article I will show you the trick to get only visible items of treeview u ....Read More
Rating
This is a link to a different site Adding Checkboxes to a Treeview via API
Total Hit (1499) Recent newsgroup postings have asked how to mimic the Advanced Options page displayed in Internet Explorer 4. Initially I thought of using the listview with checks and indents, but after someone suggested that the items on the page were collapsible, I investigated the treeview styles. Sure enough, a ....Read More
Rating
This is a link to a different site Applying Special Effects to a TreeView
Total Hit (1087) The treeview is a special beast ... compared to the listview, in my opinion, a lot more complicated to manipulate via API. Instead of referring to items as simple indices based on order, each treeview item has an item handle, and it is this that is used when manipulating treeview items (see the cod ....Read More
Rating
This is a link to a different site Duplicating the Contents of a Treeview
Total Hit (1422) The three routines below combine to produce an effective way to duplicate a TreeView with all its data. No API is used, yet the method executes quite quickly. To maximize speed when copying large treeviews, set the receiving treeview's visible property to False before beginning the copy. The meth ....Read More
Rating
This is a link to a different site Toggling Checkbox Visibility in a Treeview
Total Hit (957) So now that the ability to display checkboxes has been added to the application (Adding Checkboxes to a TreeView via API), there may be times when it is desirable to hide this functionality. Simply resetting the TVS_CHECKBOXES flag does not do this, as the state image icons are still attached to the ....Read More
Rating
This is a link to a different site Tutorial - TreeView Control Introduction
Total Hit (1847) The Tree View control is a Visual Basic version of the control you see used in many programs, including Explorer and FrontPage, used to list the folders on your hard disk. This control allows you to add nodes to a tree, each of which can have sub items. Below is an image of the Tree View control in ....Read More
Rating


Recommanded Links

 

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

© 2008 BinaryWorld LLC. All rights reserved.