45. How can I expand a folder
With Exfolderview1
.get_ShellFolder("C:\").Expanded = True
End With
44. How do I get the subfolders of specified folder
Dim var_ShellFolders
With Exfolderview1
var_ShellFolders = .get_ShellFolder("C:\").Folders
End With
43. How do I check a folder
With Exfolderview1 .HasCheckBoxes = True .get_ShellFolder("C:\").Check = True End With
42. How do I get the name of folder, as it is displayed in the control
Dim var_DisplayName With Exfolderview1 var_DisplayName = .FirstVisibleFolder.DisplayName End With
41. How can I specify the folders being displayed in the control
' IncludeFolder event - Occurs when the user includes folders to the control. Private Sub Exfolderview1_IncludeFolder(ByVal sender As System.Object,ByVal Folder As exontrol.EXFOLDERVIEWLib.ExShellFolder,ByRef Include As Boolean) Handles Exfolderview1.IncludeFolder With Exfolderview1 Include = False End With End Sub With Exfolderview1 .IncludeFolder = True End With
40. How can I include the files and folders in the control
With Exfolderview1
.IncludeAttributeMask = 2147483703
End With
39. How can I change the control's font
Dim f With Exfolderview1 f = New stdole.StdFont() With f .Name = "Verdana" .Size = 12 End With .Font = f End With
38. Can I add a rename to the control's context menu
With Exfolderview1
.CanRename = True
End With
37. How can I change the shape of the cursor
With Exfolderview1
.MousePointer = 2
End With
36. How can I get height of the horizontal scroll bar
With Exfolderview1
Debug.Print(.HorizontalHeight)
End With
35. How can I get width of the vertical scroll bar
With Exfolderview1
Debug.Print(.VerticalWidth)
End With
34. How can I remove the control's scroll bars
With Exfolderview1
Debug.Print(.Scrollbars)
End With
33. How can I get the horizontal scroll range
With Exfolderview1
Debug.Print(.HorizontalOversize)
End With
32. How can I get the horizontal scroll position
With Exfolderview1
Debug.Print(.HorizontalOffset)
End With
31. How can I get the vertical scroll range
With Exfolderview1
Debug.Print(.VerticalOversize)
End With
30. How can I get the vertical scroll position
With Exfolderview1
Debug.Print(.VerticalOffset)
End With
29. Can I assign partial check boxes to folders, so the sub folders get checked when the user checks the parent folder
With Exfolderview1 .HasCheckBoxes = True .PartialCheck = True .FirstVisibleFolder.Check = True End With
28. How can I drop files to control
With Exfolderview1
.AllowDropFiles = True
End With
27. Can I explore only a folder, so the user can't see the parent folder
With Exfolderview1
.ExploreFromHere = "c:\"
End With
26. How can I hide the icons
With Exfolderview1
.IconsVisible = False
End With
25. How can I disable or enable the entire control
With Exfolderview1
.Enabled = False
End With
24. How can I expand a folder
With Exfolderview1
.EnsureVisible(.get_SpecialFolderPath(exontrol.EXFOLDERVIEWLib.SpecialFolderPathEnum.StartMenu))
End With
23. How can I ensure that a specified folder fits the contrl's client area
With Exfolderview1
.EnsureVisible(.get_SpecialFolderPath(exontrol.EXFOLDERVIEWLib.SpecialFolderPathEnum.StartMenu))
End With
22. How do I refresh the control
With Exfolderview1
.Refresh()
End With
21. Is there any function or property to get the first visible folder
With Exfolderview1 .HasCheckBoxes = True .FirstVisibleFolder.Check = True End With
20. How do I find a special folder, like My Computer
With Exfolderview1
.SelectedFolder = "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}"
End With
19. How do I find a special folder, like My Computer
With Exfolderview1 .SelectedFolder = .get_SpecialFolderPath(exontrol.EXFOLDERVIEWLib.SpecialFolderPathEnum.MyComputer) End With
18. How do I select and expand a folder
With Exfolderview1
.SelectedFolder = .get_SpecialFolderPath(exontrol.EXFOLDERVIEWLib.SpecialFolderPathEnum.Programs)
End With
17. How do I select and expand a folder
With Exfolderview1
.SelectedFolder = "c:\"
End With
16. How do I select a folder
With Exfolderview1
.SelectedFolder = "c:\"
End With
15. How do I get the checked folders or files
With Exfolderview1 .HasCheckBoxes = True .FirstVisibleFolder.Check = True Debug.Print(.FoldersCheck.Count) End With
14. How can I display the hidden folders
With Exfolderview1
.HiddenFolders = True
End With
13. How can I get the folder or the file from the point
' MouseMove event - Fired when the user move the mouse over the ExFolderView control. Private Sub Exfolderview1_MouseMoveEvent(ByVal sender As System.Object,ByVal Button As Short,ByVal Shift As Short,ByVal X As Integer,ByVal Y As Integer) Handles Exfolderview1.MouseMoveEvent With Exfolderview1 Debug.Print(.get_FolderFromPoint(-1,-1).DisplayName) End With End Sub
12. How can I refresh the control as soon as the user renames a folder in Windows Explorer
With Exfolderview1
.AutoUpdate = True
End With
11. How do I enable or disable the control's context menu
With Exfolderview1
.EnableShellMenu = False
End With
10. How do I hide the overlay icons
With Exfolderview1
.OverlayIcons = False
End With
9. How do I display the overlay icons
With Exfolderview1
.OverlayIcons = True
End With
8. How do I display the share name for folders and files
With Exfolderview1
.DisplayShareName = True
End With
7. How do I assign a checkbox for each folder/file in the control
With Exfolderview1
.HasCheckBoxes = True
End With
6. How do I remove the lines that link the root items
With Exfolderview1
.HasLinesAtRoot = False
End With
5. How do I remove the buttons to expand or collapse the folders
With Exfolderview1
.HasButtons = False
End With
4. How do I remove the lines between items
With Exfolderview1
.HasLines = False
End With
3. How do I remove the control's border
With Exfolderview1
.Appearance = exontrol.EXFOLDERVIEWLib.AppearanceEnum.Flat
End With
2. How do I change the control's foreground color
With Exfolderview1
.ForeColor = Color.FromArgb(255,0,0)
End With
1. How do I change the control's background color
With Exfolderview1
.BackColor = Color.FromArgb(255,0,0)
End With