This constructor configures the object for browsing the server into a TreeNode structure and displaying the browse result in a TreeView and a ListView control. Branches are shown in the TreeView control and the items of the selected branch are displayed in the ListView control. In the default BrowseModeOneLevel mode only the root branch is browsed initally. Other branches are browsed when they are the first time selected in the TreeView. The BrowseModeOneLevel property can be set to false before calling the Browse method to force browsing the whole server initally. This is not recommended in typical situations. The browse result is shown alphabetically sorted. The DoNotSort property can be set to true before calling the Browse method to disable sorting.
Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal srv As BGServer, _ ByVal tv As TreeView, _ ByVal lv As ListView _ ) |
Parameters
- srv
- BGServer object for the server access and the general error reporting.
- tv
- TreeView control to display the branches.
- lv
- ListView control to disply the items of the branch selected in the TreeView control.