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.

103 lines
2.7 KiB

  1. VERSION 5.00
  2. Begin VB.Form AddCatalog
  3. Caption = "Create New Catalog"
  4. ClientHeight = 3204
  5. ClientLeft = 5148
  6. ClientTop = 4212
  7. ClientWidth = 4680
  8. LinkTopic = "Form1"
  9. ScaleHeight = 3204
  10. ScaleWidth = 4680
  11. Begin VB.CommandButton Cancel
  12. Caption = "Cancel"
  13. Height = 495
  14. Left = 2280
  15. TabIndex = 5
  16. Top = 1920
  17. Width = 1455
  18. End
  19. Begin VB.CommandButton Ok
  20. Caption = "Ok"
  21. Height = 495
  22. Left = 240
  23. TabIndex = 4
  24. Top = 1920
  25. Width = 1455
  26. End
  27. Begin VB.TextBox strLocation
  28. Height = 285
  29. Left = 1680
  30. TabIndex = 3
  31. Top = 1080
  32. Width = 2295
  33. End
  34. Begin VB.TextBox strName
  35. Height = 285
  36. Left = 1680
  37. TabIndex = 2
  38. Top = 360
  39. Width = 2295
  40. End
  41. Begin VB.Label CatalogName
  42. Caption = "Catalog Name"
  43. Height = 255
  44. Left = 120
  45. TabIndex = 1
  46. Top = 360
  47. Width = 1095
  48. End
  49. Begin VB.Label CatalogLocation
  50. Caption = "Catalog Location"
  51. Height = 255
  52. Left = 120
  53. TabIndex = 0
  54. Top = 1080
  55. Width = 1215
  56. End
  57. End
  58. Attribute VB_Name = "AddCatalog"
  59. Attribute VB_GlobalNameSpace = False
  60. Attribute VB_Creatable = False
  61. Attribute VB_PredeclaredId = True
  62. Attribute VB_Exposed = False
  63. '+-------------------------------------------------------------------------
  64. '
  65. ' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  66. ' ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  67. ' THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  68. ' PARTICULAR PURPOSE.
  69. '
  70. ' Copyright 1998-1999, Microsoft Corporation. All Rights Reserved.
  71. '
  72. ' PROGRAM: VBAdmin
  73. '
  74. ' PURPOSE: Illustrates how to administer Indexing Service
  75. ' using Visual Basic and the Admin Helper API.
  76. '
  77. ' PLATFORM: Windows 2000
  78. '
  79. '--------------------------------------------------------------------------
  80. Option Explicit
  81. Private Sub Ok_Click()
  82. On Error GoTo ErrorHandler
  83. Dim CiCatalog As Object
  84. Set CiCatalog = ISAdminForm.gCiAdmin.AddCatalog(strName, strLocation)
  85. ErrorHandler:
  86. Set CiCatalog = Nothing
  87. If (Err.Number) Then
  88. MsgBox (Err.Description)
  89. Else
  90. Unload Me
  91. End If
  92. End Sub
  93. Private Sub Cancel_Click()
  94. Unload Me
  95. End Sub