Leaked source code of windows server 2003
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.

104 lines
3.5 KiB

  1. VERSION 5.00
  2. Begin VB.Form frmRunAs
  3. BorderStyle = 3 'Fixed Dialog
  4. Caption = "Run As"
  5. ClientHeight = 1200
  6. ClientLeft = 2835
  7. ClientTop = 3480
  8. ClientWidth = 6105
  9. LinkTopic = "Form1"
  10. MaxButton = 0 'False
  11. MinButton = 0 'False
  12. ScaleHeight = 709
  13. ScaleMode = 0 'User
  14. ScaleWidth = 5732.265
  15. ShowInTaskbar = 0 'False
  16. StartUpPosition = 2 'CenterScreen
  17. Visible = 0 'False
  18. Begin VB.TextBox txtCmdLine
  19. Height = 345
  20. Left = 1440
  21. TabIndex = 1
  22. Top = 135
  23. Width = 4485
  24. End
  25. Begin VB.CommandButton cmdOK
  26. Caption = "OK"
  27. Default = -1 'True
  28. Height = 390
  29. Left = 1680
  30. TabIndex = 2
  31. Top = 660
  32. Width = 1140
  33. End
  34. Begin VB.CommandButton cmdCancel
  35. Cancel = -1 'True
  36. Caption = "Cancel"
  37. Height = 390
  38. Left = 3285
  39. TabIndex = 3
  40. Top = 660
  41. Width = 1140
  42. End
  43. Begin VB.Label lblLabels
  44. Caption = "&Command Line:"
  45. Height = 270
  46. Index = 0
  47. Left = 105
  48. TabIndex = 0
  49. Top = 150
  50. Width = 1200
  51. End
  52. End
  53. Attribute VB_Name = "frmRunAs"
  54. Attribute VB_GlobalNameSpace = False
  55. Attribute VB_Creatable = False
  56. Attribute VB_PredeclaredId = True
  57. Attribute VB_Exposed = False
  58. Option Explicit
  59. ' ===========================================================================
  60. ' | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF |
  61. ' | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO |
  62. ' | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A |
  63. ' | PARTICULAR PURPOSE. |
  64. ' | Copyright (c) 1998-1999 Microsoft Corporation |
  65. ' ===========================================================================
  66. ' =============================================================================
  67. ' File: frmRunAs.frm
  68. ' Project: FileExplorerSample
  69. ' Type: Form
  70. ' =============================================================================
  71. ' =============================================================================
  72. ' Method: cmdCancel_Click
  73. ' Type: Event
  74. ' Description: Fired when the user hits the Cancel button on the form
  75. '
  76. ' Parameters: None
  77. ' Output: None
  78. ' Notes: Hides the form and sets the command line text to an empty string
  79. ' =============================================================================
  80. '
  81. Private Sub cmdCancel_Click()
  82. txtCmdLine = ""
  83. Me.Hide
  84. End Sub
  85. ' =============================================================================
  86. ' Method: cmdOK_Click
  87. ' Type: Event
  88. ' Description: Fired when the user hits the OK button on the form
  89. '
  90. ' Parameters: None
  91. ' Output: None
  92. ' Notes: Hides the form. The command line now contains the text entered
  93. ' by the user.
  94. ' =============================================================================
  95. '
  96. Private Sub cmdOK_Click()
  97. Me.Hide
  98. End Sub