Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.4 KiB

  1. VERSION 5.00
  2. Begin VB.Form DirBrowse
  3. BorderStyle = 1 'Fixed Single
  4. Caption = "Browse"
  5. ClientHeight = 3684
  6. ClientLeft = 48
  7. ClientTop = 336
  8. ClientWidth = 5388
  9. ControlBox = 0 'False
  10. LinkTopic = "Form2"
  11. MaxButton = 0 'False
  12. MinButton = 0 'False
  13. ScaleHeight = 3684
  14. ScaleWidth = 5388
  15. StartUpPosition = 3 'Windows Default
  16. Begin VB.CommandButton CancelBtn
  17. Cancel = -1 'True
  18. Caption = "Cancel"
  19. Height = 495
  20. Left = 3840
  21. TabIndex = 3
  22. Top = 720
  23. Width = 1455
  24. End
  25. Begin VB.CommandButton OpenBtn
  26. Caption = "&Open"
  27. Default = -1 'True
  28. Height = 495
  29. Left = 3840
  30. TabIndex = 2
  31. Top = 120
  32. Width = 1455
  33. End
  34. Begin VB.DirListBox Dir1
  35. Height = 3015
  36. Left = 120
  37. TabIndex = 1
  38. Top = 480
  39. Width = 3495
  40. End
  41. Begin VB.DriveListBox Drive1
  42. Height = 315
  43. Left = 120
  44. TabIndex = 0
  45. Top = 120
  46. Width = 3495
  47. End
  48. End
  49. Attribute VB_Name = "DirBrowse"
  50. Attribute VB_GlobalNameSpace = False
  51. Attribute VB_Creatable = False
  52. Attribute VB_PredeclaredId = True
  53. Attribute VB_Exposed = False
  54. '+-------------------------------------------------------------------------
  55. '
  56. ' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  57. ' ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  58. ' THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  59. ' PARTICULAR PURPOSE.
  60. '
  61. ' Copyright 1998-1999, Microsoft Corporation. All Rights Reserved.
  62. '
  63. ' PROGRAM: VBQuery
  64. '
  65. ' PURPOSE: Illustrates how to execute Indexing Service queries using
  66. ' Visual Basic and the Query Helper/OLE DB Helper APIs.
  67. '
  68. ' PLATFORM: Windows 2000
  69. '
  70. '--------------------------------------------------------------------------
  71. Public OK As Boolean
  72. Private Sub CancelBtn_Click()
  73. OK = False
  74. DirBrowse.Hide
  75. End Sub
  76. Private Sub Drive1_Change()
  77. Dir1.Path = Drive1.Drive
  78. Dir1.Refresh
  79. End Sub
  80. Private Sub Form_Load()
  81. OK = False
  82. End Sub
  83. Private Sub OpenBtn_Click()
  84. OK = True
  85. DirBrowse.Hide
  86. End Sub